at76c50x-usb: convert at76_debug to an unsigned int
authorJason Andryuk <jandryuk@gmail.com>
Wed, 18 Feb 2009 20:41:04 +0000 (22:41 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:44 +0000 (14:52 -0500)
at76_debug should be an unsigned int as it used as a bit field.  In
fact, modprobe fails when trying to set at76_debug's high bit.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/at76c50x-usb.c

index df3efc568580b2717d8bc3ba9951b3d781a47154..aa06b90664d3d7a3b909400a38e87047081dc8e5 100644 (file)
                }                                                        \
        } while (0)
 
-static int at76_debug = DBG_DEFAULTS;
+static uint at76_debug = DBG_DEFAULTS;
 
 /* Protect against concurrent firmware loading and parsing */
 static struct mutex fw_mutex;
@@ -2459,7 +2459,7 @@ static void __exit at76_mod_exit(void)
        led_trigger_unregister_simple(ledtrig_tx);
 }
 
-module_param_named(debug, at76_debug, int, 0600);
+module_param_named(debug, at76_debug, uint, 0600);
 MODULE_PARM_DESC(debug, "Debugging level");
 
 module_init(at76_mod_init);