diff options
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 2 | ||||
-rw-r--r-- | drivers/pci/msi.c | 6 | ||||
-rw-r--r-- | drivers/pci/probe.c | 1 | ||||
-rw-r--r-- | include/linux/pci.h | 2 |
4 files changed, 0 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 01f18c683407..2b52b087aaa8 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -381,8 +381,6 @@ struct pci_dev *of_create_pci_dev(struct device_node *node, | |||
381 | 381 | ||
382 | pci_device_add(dev, bus); | 382 | pci_device_add(dev, bus); |
383 | 383 | ||
384 | /* XXX pci_scan_msi_device(dev); */ | ||
385 | |||
386 | return dev; | 384 | return dev; |
387 | } | 385 | } |
388 | EXPORT_SYMBOL(of_create_pci_dev); | 386 | EXPORT_SYMBOL(of_create_pci_dev); |
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 3776531586d1..6cfa6be9a6d5 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -294,12 +294,6 @@ static int msi_lookup_irq(struct pci_dev *dev, int type) | |||
294 | return -EACCES; | 294 | return -EACCES; |
295 | } | 295 | } |
296 | 296 | ||
297 | void pci_scan_msi_device(struct pci_dev *dev) | ||
298 | { | ||
299 | if (!dev) | ||
300 | return; | ||
301 | } | ||
302 | |||
303 | #ifdef CONFIG_PM | 297 | #ifdef CONFIG_PM |
304 | int pci_save_msi_state(struct pci_dev *dev) | 298 | int pci_save_msi_state(struct pci_dev *dev) |
305 | { | 299 | { |
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 9d7788428642..2fe1d690eb13 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -945,7 +945,6 @@ pci_scan_single_device(struct pci_bus *bus, int devfn) | |||
945 | return NULL; | 945 | return NULL; |
946 | 946 | ||
947 | pci_device_add(dev, bus); | 947 | pci_device_add(dev, bus); |
948 | pci_scan_msi_device(dev); | ||
949 | 948 | ||
950 | return dev; | 949 | return dev; |
951 | } | 950 | } |
diff --git a/include/linux/pci.h b/include/linux/pci.h index d69dfd7d0e0b..29765e2b1e0a 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -625,7 +625,6 @@ struct msix_entry { | |||
625 | 625 | ||
626 | 626 | ||
627 | #ifndef CONFIG_PCI_MSI | 627 | #ifndef CONFIG_PCI_MSI |
628 | static inline void pci_scan_msi_device(struct pci_dev *dev) {} | ||
629 | static inline int pci_enable_msi(struct pci_dev *dev) {return -1;} | 628 | static inline int pci_enable_msi(struct pci_dev *dev) {return -1;} |
630 | static inline void pci_disable_msi(struct pci_dev *dev) {} | 629 | static inline void pci_disable_msi(struct pci_dev *dev) {} |
631 | static inline int pci_enable_msix(struct pci_dev* dev, | 630 | static inline int pci_enable_msix(struct pci_dev* dev, |
@@ -633,7 +632,6 @@ static inline int pci_enable_msix(struct pci_dev* dev, | |||
633 | static inline void pci_disable_msix(struct pci_dev *dev) {} | 632 | static inline void pci_disable_msix(struct pci_dev *dev) {} |
634 | static inline void msi_remove_pci_irq_vectors(struct pci_dev *dev) {} | 633 | static inline void msi_remove_pci_irq_vectors(struct pci_dev *dev) {} |
635 | #else | 634 | #else |
636 | extern void pci_scan_msi_device(struct pci_dev *dev); | ||
637 | extern int pci_enable_msi(struct pci_dev *dev); | 635 | extern int pci_enable_msi(struct pci_dev *dev); |
638 | extern void pci_disable_msi(struct pci_dev *dev); | 636 | extern void pci_disable_msi(struct pci_dev *dev); |
639 | extern int pci_enable_msix(struct pci_dev* dev, | 637 | extern int pci_enable_msix(struct pci_dev* dev, |