ChangeSet 1.1643, 2004/05/14 14:46:03-07:00, greg@kroah.com USB: change usbserial core to use module_param() drivers/usb/serial/generic.c | 5 +++-- drivers/usb/serial/usb-serial.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff -Nru a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c --- a/drivers/usb/serial/generic.c Fri May 14 15:26:59 2004 +++ b/drivers/usb/serial/generic.c Fri May 14 15:26:59 2004 @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -32,10 +33,10 @@ static __u16 vendor = 0x05f9; static __u16 product = 0xffff; -MODULE_PARM(vendor, "h"); +module_param(vendor, ushort, 0); MODULE_PARM_DESC(vendor, "User specified USB idVendor"); -MODULE_PARM(product, "h"); +module_param(product, ushort, 0); MODULE_PARM_DESC(product, "User specified USB idProduct"); static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */ diff -Nru a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c --- a/drivers/usb/serial/usb-serial.c Fri May 14 15:26:59 2004 +++ b/drivers/usb/serial/usb-serial.c Fri May 14 15:26:59 2004 @@ -1,7 +1,7 @@ /* * USB Serial Converter driver * - * Copyright (C) 1999 - 2003 Greg Kroah-Hartman (greg@kroah.com) + * Copyright (C) 1999 - 2004 Greg Kroah-Hartman (greg@kroah.com) * Copyright (C) 2000 Peter Berger (pberger@brimson.com) * Copyright (C) 2000 Al Borchers (borchers@steinerpoint.com) * @@ -330,6 +330,7 @@ #include #include #include +#include #include #include #include @@ -1409,5 +1410,5 @@ MODULE_DESCRIPTION( DRIVER_DESC ); MODULE_LICENSE("GPL"); -MODULE_PARM(debug, "i"); +module_param(debug, bool, S_IRUGO | S_IWUSR); MODULE_PARM_DESC(debug, "Debug enabled or not");