MSI: Remove pci_scan_msi_device()
pci_scan_msi_device() doesn't do anything anymore, so remove it. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Родитель
88187dfa4d
Коммит
0fcfdabbdb
|
@ -381,8 +381,6 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
|
|||
|
||||
pci_device_add(dev, bus);
|
||||
|
||||
/* XXX pci_scan_msi_device(dev); */
|
||||
|
||||
return dev;
|
||||
}
|
||||
EXPORT_SYMBOL(of_create_pci_dev);
|
||||
|
|
|
@ -294,12 +294,6 @@ static int msi_lookup_irq(struct pci_dev *dev, int type)
|
|||
return -EACCES;
|
||||
}
|
||||
|
||||
void pci_scan_msi_device(struct pci_dev *dev)
|
||||
{
|
||||
if (!dev)
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
int pci_save_msi_state(struct pci_dev *dev)
|
||||
{
|
||||
|
|
|
@ -945,7 +945,6 @@ pci_scan_single_device(struct pci_bus *bus, int devfn)
|
|||
return NULL;
|
||||
|
||||
pci_device_add(dev, bus);
|
||||
pci_scan_msi_device(dev);
|
||||
|
||||
return dev;
|
||||
}
|
||||
|
|
|
@ -625,7 +625,6 @@ struct msix_entry {
|
|||
|
||||
|
||||
#ifndef CONFIG_PCI_MSI
|
||||
static inline void pci_scan_msi_device(struct pci_dev *dev) {}
|
||||
static inline int pci_enable_msi(struct pci_dev *dev) {return -1;}
|
||||
static inline void pci_disable_msi(struct pci_dev *dev) {}
|
||||
static inline int pci_enable_msix(struct pci_dev* dev,
|
||||
|
@ -633,7 +632,6 @@ static inline int pci_enable_msix(struct pci_dev* dev,
|
|||
static inline void pci_disable_msix(struct pci_dev *dev) {}
|
||||
static inline void msi_remove_pci_irq_vectors(struct pci_dev *dev) {}
|
||||
#else
|
||||
extern void pci_scan_msi_device(struct pci_dev *dev);
|
||||
extern int pci_enable_msi(struct pci_dev *dev);
|
||||
extern void pci_disable_msi(struct pci_dev *dev);
|
||||
extern int pci_enable_msix(struct pci_dev* dev,
|
||||
|
|
Загрузка…
Ссылка в новой задаче