[PATCH] shpchp - move slot name into struct slot
[safe/jmp/linux-2.6] / drivers / pci / hotplug / shpchp.h
index b1e2a77..dc12b0d 100644 (file)
@@ -53,9 +53,8 @@ extern int shpchp_debug;
 #define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg)
 #define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg)
 
-#define SLOT_MAGIC     0x67267321
+#define SLOT_NAME_SIZE 10
 struct slot {
-       u32 magic;
        u8 bus;
        u8 device;
        u16 status;
@@ -70,6 +69,7 @@ struct slot {
        struct hpc_ops *hpc_ops;
        struct hotplug_slot *hotplug_slot;
        struct list_head        slot_list;
+       char name[SLOT_NAME_SIZE];
 };
 
 struct event_info {
@@ -287,10 +287,6 @@ static inline int slot_paranoia_check (struct slot *slot, const char *function)
                dbg("%s - slot == NULL", function);
                return -1;
        }
-       if (slot->magic != SLOT_MAGIC) {
-               dbg("%s - bad magic number for slot", function);
-               return -1;
-       }
        if (!slot->hotplug_slot) {
                dbg("%s - slot->hotplug_slot == NULL!", function);
                return -1;