mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
This commit is contained in:
parent
476bc0015b
commit
90ab5ee941
283 changed files with 471 additions and 465 deletions
|
|
@ -40,7 +40,7 @@ MODULE_DESCRIPTION("CAPI4Linux: DMA support for active AVM cards");
|
|||
MODULE_AUTHOR("Carsten Paeth");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int suppress_pollack = 0;
|
||||
static bool suppress_pollack = 0;
|
||||
module_param(suppress_pollack, bool, 0);
|
||||
|
||||
/* ------------------------------------------------------------- */
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ static char *revision = "$Revision: 1.1.2.2 $";
|
|||
|
||||
/* ------------------------------------------------------------- */
|
||||
|
||||
static int suppress_pollack;
|
||||
static bool suppress_pollack;
|
||||
|
||||
static struct pci_device_id c4_pci_tbl[] = {
|
||||
{ PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21285, PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_C4, 0, 0, (unsigned long)4 },
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ static const char *boardname[] = { "DataCommute/BRI", "DataCommute/PRI", "TeleCo
|
|||
static unsigned int io[] = {0,0,0,0};
|
||||
static unsigned char irq[] = {0,0,0,0};
|
||||
static unsigned long ram[] = {0,0,0,0};
|
||||
static int do_reset = 0;
|
||||
static bool do_reset = 0;
|
||||
|
||||
module_param_array(io, int, NULL, 0);
|
||||
module_param_array(irq, int, NULL, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue