Commit ed01e312 authored by Randy Dunlap's avatar Randy Dunlap Committed by Jeff Garzik

[PATCH] wl3501: fix module_param types/warnings

Fix gcc warning:
drivers/net/wireless/wl3501_cs.c:2282: warning: return from incompatible pointer type

module_param() isn't happy about different types for irq_mask;
unsigned long vs. int.  Make it uint consistently.
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
parent 73ef2d64
......@@ -100,7 +100,7 @@ module_param(pc_debug, int, 0);
/* Parameters that can be set with 'insmod' */
/* Bit map of interrupts to choose from */
/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
static unsigned long wl3501_irq_mask = 0xdeb8;
static unsigned int wl3501_irq_mask = 0xdeb8;
static int wl3501_irq_list[4] = { -1 };
/*
......@@ -2279,7 +2279,7 @@ static void __exit wl3501_exit_module(void)
module_init(wl3501_init_module);
module_exit(wl3501_exit_module);
module_param(wl3501_irq_mask, int, 0);
module_param(wl3501_irq_mask, uint, 0);
module_param_array(wl3501_irq_list, int, NULL, 0);
MODULE_AUTHOR("Fox Chen <mhchen@golf.ccl.itri.org.tw>, "
"Arnaldo Carvalho de Melo <acme@conectiva.com.br>,"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment