diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
commit | 90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch) | |
tree | fcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/isdn | |
parent | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (diff) |
module_param: make bool parameters really bool (drivers & misc)
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.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/hardware/avm/b1dma.c | 2 | ||||
-rw-r--r-- | drivers/isdn/hardware/avm/c4.c | 2 | ||||
-rw-r--r-- | drivers/isdn/sc/init.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/isdn/hardware/avm/b1dma.c b/drivers/isdn/hardware/avm/b1dma.c index 9c8d7aa053c5..a0ed668d4d2a 100644 --- a/drivers/isdn/hardware/avm/b1dma.c +++ b/drivers/isdn/hardware/avm/b1dma.c | |||
@@ -40,7 +40,7 @@ MODULE_DESCRIPTION("CAPI4Linux: DMA support for active AVM cards"); | |||
40 | MODULE_AUTHOR("Carsten Paeth"); | 40 | MODULE_AUTHOR("Carsten Paeth"); |
41 | MODULE_LICENSE("GPL"); | 41 | MODULE_LICENSE("GPL"); |
42 | 42 | ||
43 | static int suppress_pollack = 0; | 43 | static bool suppress_pollack = 0; |
44 | module_param(suppress_pollack, bool, 0); | 44 | module_param(suppress_pollack, bool, 0); |
45 | 45 | ||
46 | /* ------------------------------------------------------------- */ | 46 | /* ------------------------------------------------------------- */ |
diff --git a/drivers/isdn/hardware/avm/c4.c b/drivers/isdn/hardware/avm/c4.c index d3530f6e8115..9743b24ef9d6 100644 --- a/drivers/isdn/hardware/avm/c4.c +++ b/drivers/isdn/hardware/avm/c4.c | |||
@@ -40,7 +40,7 @@ static char *revision = "$Revision: 1.1.2.2 $"; | |||
40 | 40 | ||
41 | /* ------------------------------------------------------------- */ | 41 | /* ------------------------------------------------------------- */ |
42 | 42 | ||
43 | static int suppress_pollack; | 43 | static bool suppress_pollack; |
44 | 44 | ||
45 | static struct pci_device_id c4_pci_tbl[] = { | 45 | static struct pci_device_id c4_pci_tbl[] = { |
46 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21285, PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_C4, 0, 0, (unsigned long)4 }, | 46 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21285, PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_C4, 0, 0, (unsigned long)4 }, |
diff --git a/drivers/isdn/sc/init.c b/drivers/isdn/sc/init.c index ca710ab278ec..023de789f250 100644 --- a/drivers/isdn/sc/init.c +++ b/drivers/isdn/sc/init.c | |||
@@ -30,7 +30,7 @@ static const char *boardname[] = { "DataCommute/BRI", "DataCommute/PRI", "TeleCo | |||
30 | static unsigned int io[] = {0,0,0,0}; | 30 | static unsigned int io[] = {0,0,0,0}; |
31 | static unsigned char irq[] = {0,0,0,0}; | 31 | static unsigned char irq[] = {0,0,0,0}; |
32 | static unsigned long ram[] = {0,0,0,0}; | 32 | static unsigned long ram[] = {0,0,0,0}; |
33 | static int do_reset = 0; | 33 | static bool do_reset = 0; |
34 | 34 | ||
35 | module_param_array(io, int, NULL, 0); | 35 | module_param_array(io, int, NULL, 0); |
36 | module_param_array(irq, int, NULL, 0); | 36 | module_param_array(irq, int, NULL, 0); |