diff options
author | Alex Chiang <achiang@hp.com> | 2008-10-20 19:41:12 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-10-22 19:42:39 -0400 |
commit | df77cd10078e36e1b89964e5e8c206add399a98d (patch) | |
tree | 97a7f3a1c5d0b3f711106f9ffcf5b7c9493848e2 /drivers/pci/hotplug/acpiphp.h | |
parent | 5fe6cc60680d29740b85278e17a002fa27b7e642 (diff) |
PCI: acpiphp: remove 'name' parameter
We do not need to manage our own name parameter, especially since
the PCI core can change it on our behalf, in the case of duplicate
slot names.
Remove 'name' from acpiphp's version of struct slot.
Cc: kristen.c.accardi@intel.com
Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug/acpiphp.h')
-rw-r--r-- | drivers/pci/hotplug/acpiphp.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pci/hotplug/acpiphp.h b/drivers/pci/hotplug/acpiphp.h index 5a58b075dd8d..f9e244da30ae 100644 --- a/drivers/pci/hotplug/acpiphp.h +++ b/drivers/pci/hotplug/acpiphp.h | |||
@@ -50,9 +50,6 @@ | |||
50 | #define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg) | 50 | #define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg) |
51 | #define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) | 51 | #define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) |
52 | 52 | ||
53 | /* name size which is used for entries in pcihpfs */ | ||
54 | #define SLOT_NAME_SIZE 20 /* {_SUN} */ | ||
55 | |||
56 | struct acpiphp_bridge; | 53 | struct acpiphp_bridge; |
57 | struct acpiphp_slot; | 54 | struct acpiphp_slot; |
58 | 55 | ||
@@ -63,9 +60,13 @@ struct slot { | |||
63 | struct hotplug_slot *hotplug_slot; | 60 | struct hotplug_slot *hotplug_slot; |
64 | struct acpiphp_slot *acpi_slot; | 61 | struct acpiphp_slot *acpi_slot; |
65 | struct hotplug_slot_info info; | 62 | struct hotplug_slot_info info; |
66 | char name[SLOT_NAME_SIZE]; | ||
67 | }; | 63 | }; |
68 | 64 | ||
65 | static inline const char *slot_name(struct slot *slot) | ||
66 | { | ||
67 | return hotplug_slot_name(slot->hotplug_slot); | ||
68 | } | ||
69 | |||
69 | /* | 70 | /* |
70 | * struct acpiphp_bridge - PCI bridge information | 71 | * struct acpiphp_bridge - PCI bridge information |
71 | * | 72 | * |