diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-12-19 09:08:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-19 22:27:29 -0500 |
commit | eb93992207dadb946a3b5cf4544957dc924a6f58 (patch) | |
tree | 8d840ea0e0e5eb3cf6207a2608d434475a9076b4 /drivers/net/ethernet/via | |
parent | 3db1cd5c05f35fb43eb134df6f321de4e63141f2 (diff) |
module_param: make bool parameters really bool (net & drivers/net)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
(Thanks to Joe Perches for suggesting coccinelle for 0/1 -> true/false).
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/via')
-rw-r--r-- | drivers/net/ethernet/via/via-rhine.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index bcdbdc72b558..5c4983b2870a 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #define DRV_VERSION "1.5.0" | 35 | #define DRV_VERSION "1.5.0" |
36 | #define DRV_RELDATE "2010-10-09" | 36 | #define DRV_RELDATE "2010-10-09" |
37 | 37 | ||
38 | #include <linux/types.h> | ||
38 | 39 | ||
39 | /* A few user-configurable values. | 40 | /* A few user-configurable values. |
40 | These may be modified when a driver module is loaded. */ | 41 | These may be modified when a driver module is loaded. */ |
@@ -55,7 +56,7 @@ static int rx_copybreak; | |||
55 | 56 | ||
56 | /* Work-around for broken BIOSes: they are unable to get the chip back out of | 57 | /* Work-around for broken BIOSes: they are unable to get the chip back out of |
57 | power state D3 so PXE booting fails. bootparam(7): via-rhine.avoid_D3=1 */ | 58 | power state D3 so PXE booting fails. bootparam(7): via-rhine.avoid_D3=1 */ |
58 | static int avoid_D3; | 59 | static bool avoid_D3; |
59 | 60 | ||
60 | /* | 61 | /* |
61 | * In case you are looking for 'options[]' or 'full_duplex[]', they | 62 | * In case you are looking for 'options[]' or 'full_duplex[]', they |
@@ -2322,7 +2323,7 @@ static int __init rhine_init(void) | |||
2322 | #endif | 2323 | #endif |
2323 | if (dmi_check_system(rhine_dmi_table)) { | 2324 | if (dmi_check_system(rhine_dmi_table)) { |
2324 | /* these BIOSes fail at PXE boot if chip is in D3 */ | 2325 | /* these BIOSes fail at PXE boot if chip is in D3 */ |
2325 | avoid_D3 = 1; | 2326 | avoid_D3 = true; |
2326 | pr_warn("Broken BIOS detected, avoid_D3 enabled\n"); | 2327 | pr_warn("Broken BIOS detected, avoid_D3 enabled\n"); |
2327 | } | 2328 | } |
2328 | else if (avoid_D3) | 2329 | else if (avoid_D3) |