summaryrefslogtreecommitdiff
path: root/at76c505-rfmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'at76c505-rfmd.c')
-rw-r--r--at76c505-rfmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/at76c505-rfmd.c b/at76c505-rfmd.c
index 1ca3a71..27e0e21 100644
--- a/at76c505-rfmd.c
+++ b/at76c505-rfmd.c
@@ -105,8 +105,7 @@ static struct usbdfu_info module_usbdfu = {
id_table: dev_table,
fw_buf: fw_internal,
fw_buf_len: sizeof(fw_internal),
- post_download_hook: at76c503_usbdfu_post,
- reset_delay: 2*HZ
+ post_download_hook: at76c503_usbdfu_post
};
/* Module and USB entry points */
@@ -149,6 +148,9 @@ static int __init mod_init(void)
return -1;
}
+ /* HZ became a variable with 2.4.23-preX */
+ module_usbdfu.reset_delay=2*HZ;
+
return 0;
}