list_add(&sw->list, &switch_list);
}
-#ifdef CONFIG_HOTPLUG_PCI
+#if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE)
static void pci_iomul_switch_del_locked(struct pci_iomul_switch *sw)
{
BUG_ON(!mutex_is_locked(&switch_list_lock));
list_add(&slot->sibling, &sw->slots);
}
-#ifdef CONFIG_HOTPLUG_PCI
+#if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE)
static void pci_iomul_slot_del_locked(struct pci_iomul_switch *sw,
struct pci_iomul_slot *slot)
{
quirk_iomul_reassign_ioresource);
/*****************************************************************************/
-#ifdef CONFIG_HOTPLUG_PCI
+#if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE)
static int __devinit __pci_iomul_notifier_del_device(struct pci_dev *pdev)
{
struct pci_iomul_switch *sw;
return 0;
}
-static struct notifier_block pci_iomul_nb = {
+static struct notifier_block __devinitdata pci_iomul_nb = {
.notifier_call = pci_iomul_notifier,
};
.fops = &pci_iomul_fops,
};
-static int pci_iomul_init(void)
+static int __init pci_iomul_init(void)
{
int error;
error = misc_register(&pci_iomul_miscdev);