diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-01-06 15:48:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 18:50:06 -0500 |
commit | 8255cf35d503db7c1b26ae53b6b7f23ada82316f (patch) | |
tree | be008a902beb853782622a2cc116f1f9c68ac042 | |
parent | 1863100a0244828f78e5e47b22b93ca912e80963 (diff) |
PCI: make isa_bridge Alpha-only
Since isa_bridge is neither assigned any value !NULL nor used on !Alpha,
there's no reason for providing it.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | arch/alpha/kernel/pci.c | 4 | ||||
-rw-r--r-- | drivers/pci/pci.c | 6 | ||||
-rw-r--r-- | include/asm-alpha/pci.h | 2 | ||||
-rw-r--r-- | include/linux/pci.h | 6 |
4 files changed, 6 insertions, 12 deletions
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index 3c10b9a1ddf5..ab642a4f08de 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c | |||
@@ -575,3 +575,7 @@ void pci_iounmap(struct pci_dev *dev, void __iomem * addr) | |||
575 | 575 | ||
576 | EXPORT_SYMBOL(pci_iomap); | 576 | EXPORT_SYMBOL(pci_iomap); |
577 | EXPORT_SYMBOL(pci_iounmap); | 577 | EXPORT_SYMBOL(pci_iounmap); |
578 | |||
579 | /* FIXME: Some boxes have multiple ISA bridges! */ | ||
580 | struct pci_dev *isa_bridge; | ||
581 | EXPORT_SYMBOL(isa_bridge); | ||
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index caeeacc7b070..e91dcc05b790 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -1224,12 +1224,6 @@ early_param("pci", pci_setup); | |||
1224 | 1224 | ||
1225 | device_initcall(pci_init); | 1225 | device_initcall(pci_init); |
1226 | 1226 | ||
1227 | #if defined(CONFIG_ISA) || defined(CONFIG_EISA) | ||
1228 | /* FIXME: Some boxes have multiple ISA bridges! */ | ||
1229 | struct pci_dev *isa_bridge; | ||
1230 | EXPORT_SYMBOL(isa_bridge); | ||
1231 | #endif | ||
1232 | |||
1233 | EXPORT_SYMBOL_GPL(pci_restore_bars); | 1227 | EXPORT_SYMBOL_GPL(pci_restore_bars); |
1234 | EXPORT_SYMBOL(pci_enable_device_bars); | 1228 | EXPORT_SYMBOL(pci_enable_device_bars); |
1235 | EXPORT_SYMBOL(pci_enable_device); | 1229 | EXPORT_SYMBOL(pci_enable_device); |
diff --git a/include/asm-alpha/pci.h b/include/asm-alpha/pci.h index 4e115f368d5f..85aa1127c903 100644 --- a/include/asm-alpha/pci.h +++ b/include/asm-alpha/pci.h | |||
@@ -293,4 +293,6 @@ struct pci_dev *alpha_gendev_to_pci(struct device *dev); | |||
293 | #define IOBASE_ROOT_BUS 5 | 293 | #define IOBASE_ROOT_BUS 5 |
294 | #define IOBASE_FROM_HOSE 0x10000 | 294 | #define IOBASE_FROM_HOSE 0x10000 |
295 | 295 | ||
296 | extern struct pci_dev *isa_bridge; | ||
297 | |||
296 | #endif /* __ALPHA_PCI_H */ | 298 | #endif /* __ALPHA_PCI_H */ |
diff --git a/include/linux/pci.h b/include/linux/pci.h index cf2c8a35a1df..d69dfd7d0e0b 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -618,10 +618,6 @@ enum pci_dma_burst_strategy { | |||
618 | strategy_parameter byte boundaries */ | 618 | strategy_parameter byte boundaries */ |
619 | }; | 619 | }; |
620 | 620 | ||
621 | #if defined(CONFIG_ISA) || defined(CONFIG_EISA) | ||
622 | extern struct pci_dev *isa_bridge; | ||
623 | #endif | ||
624 | |||
625 | struct msix_entry { | 621 | struct msix_entry { |
626 | u16 vector; /* kernel uses to write allocated vector */ | 622 | u16 vector; /* kernel uses to write allocated vector */ |
627 | u16 entry; /* driver uses to specify entry, OS writes */ | 623 | u16 entry; /* driver uses to specify entry, OS writes */ |
@@ -729,8 +725,6 @@ static inline int pci_set_power_state(struct pci_dev *dev, pci_power_t state) { | |||
729 | static inline pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state) { return PCI_D0; } | 725 | static inline pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state) { return PCI_D0; } |
730 | static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable) { return 0; } | 726 | static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable) { return 0; } |
731 | 727 | ||
732 | #define isa_bridge ((struct pci_dev *)NULL) | ||
733 | |||
734 | #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0) | 728 | #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0) |
735 | 729 | ||
736 | static inline void pci_block_user_cfg_access(struct pci_dev *dev) { } | 730 | static inline void pci_block_user_cfg_access(struct pci_dev *dev) { } |