ChangeSet 1.1587.12.15, 2004/04/29 15:01:10-07:00, eike-hotplug@sf-tec.de [PATCH] CompactPCI Hotplug ZT5550: use new style of module parameters Convert the driver to use new interface for module parameters, Also fix the driver name used in debug messages. Eike drivers/pci/hotplug/cpcihp_zt5550.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff -Nru a/drivers/pci/hotplug/cpcihp_zt5550.c b/drivers/pci/hotplug/cpcihp_zt5550.c --- a/drivers/pci/hotplug/cpcihp_zt5550.c Mon May 17 17:06:26 2004 +++ b/drivers/pci/hotplug/cpcihp_zt5550.c Mon May 17 17:06:26 2004 @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -42,11 +43,7 @@ #define DRIVER_AUTHOR "Scott Murray " #define DRIVER_DESC "ZT5550 CompactPCI Hot Plug Driver" -#if !defined(CONFIG_HOTPLUG_PCI_CPCI_ZT5550_MODULE) #define MY_NAME "cpcihp_zt5550" -#else -#define MY_NAME THIS_MODULE->name -#endif #define dbg(format, arg...) \ do { \ @@ -301,7 +298,7 @@ MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL"); -MODULE_PARM(debug, "i"); +module_param(debug, bool, 644); MODULE_PARM_DESC(debug, "Debugging mode enabled or not"); -MODULE_PARM(poll, "i"); +module_param(poll, bool, 644); MODULE_PARM_DESC(poll, "#ENUM polling mode enabled or not");