Commit 280c1c9a authored by Stanley Wang's avatar Stanley Wang Committed by Greg Kroah-Hartman

[PATCH] PCI Hotplug: Replace pcihpfs with sysfs.

parent d2940fb6
...@@ -46,8 +46,11 @@ enum pci_bus_speed { ...@@ -46,8 +46,11 @@ enum pci_bus_speed {
}; };
struct hotplug_slot; struct hotplug_slot;
struct hotplug_slot_core; struct hotplug_slot_attribute {
struct attribute attr;
ssize_t (*show)(struct hotplug_slot *, char *);
ssize_t (*store)(struct hotplug_slot *, const char *, size_t);
};
/** /**
* struct hotplug_slot_ops -the callbacks that the hotplug pci core can use * struct hotplug_slot_ops -the callbacks that the hotplug pci core can use
* @owner: The module owner of this structure * @owner: The module owner of this structure
...@@ -131,7 +134,7 @@ struct hotplug_slot { ...@@ -131,7 +134,7 @@ struct hotplug_slot {
/* Variables below this are for use only by the hotplug pci core. */ /* Variables below this are for use only by the hotplug pci core. */
struct list_head slot_list; struct list_head slot_list;
struct hotplug_slot_core *core_priv; struct kobject kobj;
}; };
extern int pci_hp_register (struct hotplug_slot *slot); extern int pci_hp_register (struct hotplug_slot *slot);
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment