diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/hotplug/sgi_hotplug.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/sgi_hotplug.c b/drivers/pci/hotplug/sgi_hotplug.c index a4494d78e7c2..0a724bb6ba10 100644 --- a/drivers/pci/hotplug/sgi_hotplug.c +++ b/drivers/pci/hotplug/sgi_hotplug.c | |||
@@ -103,6 +103,12 @@ static ssize_t path_show (struct hotplug_slot *bss_hotplug_slot, | |||
103 | return retval; | 103 | return retval; |
104 | } | 104 | } |
105 | 105 | ||
106 | struct hotplug_slot_attribute { | ||
107 | struct attribute attr; | ||
108 | ssize_t (*show)(struct hotplug_slot *, char *); | ||
109 | ssize_t (*store)(struct hotplug_slot *, const char *, size_t); | ||
110 | }; | ||
111 | |||
106 | static struct hotplug_slot_attribute sn_slot_path_attr = __ATTR_RO(path); | 112 | static struct hotplug_slot_attribute sn_slot_path_attr = __ATTR_RO(path); |
107 | 113 | ||
108 | static int sn_pci_slot_valid(struct pci_bus *pci_bus, int device) | 114 | static int sn_pci_slot_valid(struct pci_bus *pci_bus, int device) |