Commit 9b8f013a authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
  PCI hotplug: SGI hotplug: do not use hotplug_slot_attr
  PCI hotplug: SGI hotplug: fix build failure
parents 9bcf73f4 94f81a47
...@@ -90,11 +90,10 @@ static struct hotplug_slot_ops sn_hotplug_slot_ops = { ...@@ -90,11 +90,10 @@ static struct hotplug_slot_ops sn_hotplug_slot_ops = {
static DEFINE_MUTEX(sn_hotplug_mutex); static DEFINE_MUTEX(sn_hotplug_mutex);
static ssize_t path_show (struct hotplug_slot *bss_hotplug_slot, static ssize_t path_show(struct pci_slot *pci_slot, char *buf)
char *buf)
{ {
int retval = -ENOENT; int retval = -ENOENT;
struct slot *slot = bss_hotplug_slot->private; struct slot *slot = pci_slot->hotplug->private;
if (!slot) if (!slot)
return retval; return retval;
...@@ -103,7 +102,7 @@ static ssize_t path_show (struct hotplug_slot *bss_hotplug_slot, ...@@ -103,7 +102,7 @@ static ssize_t path_show (struct hotplug_slot *bss_hotplug_slot,
return retval; return retval;
} }
static struct hotplug_slot_attribute sn_slot_path_attr = __ATTR_RO(path); static struct pci_slot_attribute sn_slot_path_attr = __ATTR_RO(path);
static int sn_pci_slot_valid(struct pci_bus *pci_bus, int device) static int sn_pci_slot_valid(struct pci_bus *pci_bus, int device)
{ {
......
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