PCI hotplug: rpaphp: make debug var unique
Change debug variable name to one more unique to this driver. Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
c9bbb4abb6
commit
5d9bc1fa47
3 changed files with 5 additions and 5 deletions
|
@ -46,10 +46,10 @@
|
||||||
#define PRESENT 1 /* Card in slot */
|
#define PRESENT 1 /* Card in slot */
|
||||||
|
|
||||||
#define MY_NAME "rpaphp"
|
#define MY_NAME "rpaphp"
|
||||||
extern int debug;
|
extern int rpaphp_debug;
|
||||||
#define dbg(format, arg...) \
|
#define dbg(format, arg...) \
|
||||||
do { \
|
do { \
|
||||||
if (debug) \
|
if (rpaphp_debug) \
|
||||||
printk(KERN_DEBUG "%s: " format, \
|
printk(KERN_DEBUG "%s: " format, \
|
||||||
MY_NAME , ## arg); \
|
MY_NAME , ## arg); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
/* and pci_do_scan_bus */
|
/* and pci_do_scan_bus */
|
||||||
#include "rpaphp.h"
|
#include "rpaphp.h"
|
||||||
|
|
||||||
int debug;
|
int rpaphp_debug;
|
||||||
LIST_HEAD(rpaphp_slot_head);
|
LIST_HEAD(rpaphp_slot_head);
|
||||||
|
|
||||||
#define DRIVER_VERSION "0.1"
|
#define DRIVER_VERSION "0.1"
|
||||||
|
@ -50,7 +50,7 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
|
||||||
MODULE_DESCRIPTION(DRIVER_DESC);
|
MODULE_DESCRIPTION(DRIVER_DESC);
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
module_param(debug, bool, 0644);
|
module_param_named(debug, rpaphp_debug, bool, 0644);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set_attention_status - set attention LED
|
* set_attention_status - set attention LED
|
||||||
|
|
|
@ -123,7 +123,7 @@ int rpaphp_enable_slot(struct slot *slot)
|
||||||
slot->state = CONFIGURED;
|
slot->state = CONFIGURED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug) {
|
if (rpaphp_debug) {
|
||||||
struct pci_dev *dev;
|
struct pci_dev *dev;
|
||||||
dbg("%s: pci_devs of slot[%s]\n", __func__, slot->dn->full_name);
|
dbg("%s: pci_devs of slot[%s]\n", __func__, slot->dn->full_name);
|
||||||
list_for_each_entry (dev, &bus->devices, bus_list)
|
list_for_each_entry (dev, &bus->devices, bus_list)
|
||||||
|
|
Loading…
Reference in a new issue