[2.6 patch] make isa_bridge Alpha-only

2007-01-06 Thread Adrian Bunk
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 <[EMAIL PROTECTED]>

---

 arch/alpha/kernel/pci.c |4 
 drivers/pci/pci.c   |6 --
 include/asm-alpha/pci.h |2 ++
 include/linux/pci.h |6 --
 4 files changed, 6 insertions(+), 12 deletions(-)

--- linux-2.6.20-rc3-mm1/include/linux/pci.h.old2007-01-06 
18:07:12.0 +0100
+++ linux-2.6.20-rc3-mm1/include/linux/pci.h2007-01-06 18:11:45.0 
+0100
@@ -620,10 +620,6 @@
   strategy_parameter byte boundaries */
 };
 
-#if defined(CONFIG_ISA) || defined(CONFIG_EISA)
-extern struct pci_dev *isa_bridge;
-#endif
-
 struct msix_entry {
u16 vector; /* kernel uses to write allocated vector */
u16 entry;  /* driver uses to specify entry, OS writes */
@@ -731,8 +727,6 @@
 static inline pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t 
state) { return PCI_D0; }
 static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int 
enable) { return 0; }
 
-#defineisa_bridge  ((struct pci_dev *)NULL)
-
 #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)
 
 static inline void pci_block_user_cfg_access(struct pci_dev *dev) { }
--- linux-2.6.20-rc3-mm1/include/asm-alpha/pci.h.old2007-01-06 
18:07:42.0 +0100
+++ linux-2.6.20-rc3-mm1/include/asm-alpha/pci.h2007-01-06 
18:14:33.0 +0100
@@ -293,4 +293,6 @@
 #define IOBASE_ROOT_BUS5
 #define IOBASE_FROM_HOSE   0x1
 
+extern struct pci_dev *isa_bridge;
+
 #endif /* __ALPHA_PCI_H */
--- linux-2.6.20-rc3-mm1/drivers/pci/pci.c.old  2007-01-06 18:12:48.0 
+0100
+++ linux-2.6.20-rc3-mm1/drivers/pci/pci.c  2007-01-06 18:13:17.0 
+0100
@@ -1223,12 +1223,6 @@
 
 device_initcall(pci_init);
 
-#if defined(CONFIG_ISA) || defined(CONFIG_EISA)
-/* FIXME: Some boxes have multiple ISA bridges! */
-struct pci_dev *isa_bridge;
-EXPORT_SYMBOL(isa_bridge);
-#endif
-
 EXPORT_SYMBOL_GPL(pci_restore_bars);
 EXPORT_SYMBOL(pci_enable_device_bars);
 EXPORT_SYMBOL(pci_enable_device);
--- linux-2.6.20-rc3-mm1/arch/alpha/kernel/pci.c.old2007-01-06 
18:12:15.0 +0100
+++ linux-2.6.20-rc3-mm1/arch/alpha/kernel/pci.c2007-01-06 
18:14:03.0 +0100
@@ -575,3 +575,7 @@
 
 EXPORT_SYMBOL(pci_iomap);
 EXPORT_SYMBOL(pci_iounmap);
+
+/* FIXME: Some boxes have multiple ISA bridges! */
+struct pci_dev *isa_bridge;
+EXPORT_SYMBOL(isa_bridge);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[2.6 patch] make isa_bridge Alpha-only

2007-01-06 Thread Adrian Bunk
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 [EMAIL PROTECTED]

---

 arch/alpha/kernel/pci.c |4 
 drivers/pci/pci.c   |6 --
 include/asm-alpha/pci.h |2 ++
 include/linux/pci.h |6 --
 4 files changed, 6 insertions(+), 12 deletions(-)

--- linux-2.6.20-rc3-mm1/include/linux/pci.h.old2007-01-06 
18:07:12.0 +0100
+++ linux-2.6.20-rc3-mm1/include/linux/pci.h2007-01-06 18:11:45.0 
+0100
@@ -620,10 +620,6 @@
   strategy_parameter byte boundaries */
 };
 
-#if defined(CONFIG_ISA) || defined(CONFIG_EISA)
-extern struct pci_dev *isa_bridge;
-#endif
-
 struct msix_entry {
u16 vector; /* kernel uses to write allocated vector */
u16 entry;  /* driver uses to specify entry, OS writes */
@@ -731,8 +727,6 @@
 static inline pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t 
state) { return PCI_D0; }
 static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int 
enable) { return 0; }
 
-#defineisa_bridge  ((struct pci_dev *)NULL)
-
 #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)
 
 static inline void pci_block_user_cfg_access(struct pci_dev *dev) { }
--- linux-2.6.20-rc3-mm1/include/asm-alpha/pci.h.old2007-01-06 
18:07:42.0 +0100
+++ linux-2.6.20-rc3-mm1/include/asm-alpha/pci.h2007-01-06 
18:14:33.0 +0100
@@ -293,4 +293,6 @@
 #define IOBASE_ROOT_BUS5
 #define IOBASE_FROM_HOSE   0x1
 
+extern struct pci_dev *isa_bridge;
+
 #endif /* __ALPHA_PCI_H */
--- linux-2.6.20-rc3-mm1/drivers/pci/pci.c.old  2007-01-06 18:12:48.0 
+0100
+++ linux-2.6.20-rc3-mm1/drivers/pci/pci.c  2007-01-06 18:13:17.0 
+0100
@@ -1223,12 +1223,6 @@
 
 device_initcall(pci_init);
 
-#if defined(CONFIG_ISA) || defined(CONFIG_EISA)
-/* FIXME: Some boxes have multiple ISA bridges! */
-struct pci_dev *isa_bridge;
-EXPORT_SYMBOL(isa_bridge);
-#endif
-
 EXPORT_SYMBOL_GPL(pci_restore_bars);
 EXPORT_SYMBOL(pci_enable_device_bars);
 EXPORT_SYMBOL(pci_enable_device);
--- linux-2.6.20-rc3-mm1/arch/alpha/kernel/pci.c.old2007-01-06 
18:12:15.0 +0100
+++ linux-2.6.20-rc3-mm1/arch/alpha/kernel/pci.c2007-01-06 
18:14:03.0 +0100
@@ -575,3 +575,7 @@
 
 EXPORT_SYMBOL(pci_iomap);
 EXPORT_SYMBOL(pci_iounmap);
+
+/* FIXME: Some boxes have multiple ISA bridges! */
+struct pci_dev *isa_bridge;
+EXPORT_SYMBOL(isa_bridge);

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/