Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Remove unused and broken to_hotplug_slot()

to_hotplug_slot() is unused and wouldn't work anyway, because struct
hotplug_slot no longer contains a struct kobject (it was removed by
f46753c5e354 ("PCI: introduce pci_slot")).

Remove to_hotplug_slot().

[bhelgaas: changelog]
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Gavin Shan and committed by
Bjorn Helgaas
a4acded0 f114040e

-1
-1
include/linux/pci_hotplug.h
··· 109 109 struct list_head slot_list; 110 110 struct pci_slot *pci_slot; 111 111 }; 112 - #define to_hotplug_slot(n) container_of(n, struct hotplug_slot, kobj) 113 112 114 113 static inline const char *hotplug_slot_name(const struct hotplug_slot *slot) 115 114 {