]> err.no Git - linux-2.6/commitdiff
[POWERPC] kill isa_{io,mem}_base definitions for !PCI
authorArnd Bergmann <arnd@arndb.de>
Sun, 17 Jun 2007 23:06:56 +0000 (01:06 +0200)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 29 Jun 2007 06:56:43 +0000 (01:56 -0500)
When CONFIG_PCI is disabled, the definitions for isa_io_base,
isa_mem_base and pci_dram_offset are entirely unused, but they
can result in link failure because they are defined in multiple
places.

The easiest fix is to just remove all these definitions.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
13 files changed:
arch/powerpc/platforms/83xx/mpc8313_rdb.c
arch/powerpc/platforms/83xx/mpc832x_mds.c
arch/powerpc/platforms/83xx/mpc832x_rdb.c
arch/powerpc/platforms/83xx/mpc834x_itx.c
arch/powerpc/platforms/83xx/mpc834x_mds.c
arch/powerpc/platforms/83xx/mpc836x_mds.c
arch/powerpc/platforms/85xx/mpc85xx_ads.c
arch/powerpc/platforms/85xx/mpc85xx_cds.c
arch/powerpc/platforms/85xx/mpc85xx_mds.c
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c
arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.h
include/asm-powerpc/mpc86xx.h

index ecf34fac837252bb43bc642a848dbe1f79132dac..4dee22ad14b431b9c8a6ad2289369932768017f6 100644 (file)
 #define DBG(fmt...)
 #endif
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-#endif
-
 /* ************************************************************************
  *
  * Setup the architecture
index 55e8079510e37e679711564c1bff5405bf2824da..b39cb52c6fb90290c2c6ca368f22f88dc331ddf4 100644 (file)
 #define DBG(fmt...)
 #endif
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-#endif
-
 static u8 *bcsr_regs = NULL;
 
 /* ************************************************************************
index 8b790d4d07411d8bc629e6910348f970f8a5f8a3..b2b28a44738c901a0faf6f4efbf762dee4b03f57 100644 (file)
 #define DBG(fmt...)
 #endif
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-#endif
-
 /* ************************************************************************
  *
  * Setup the architecture
index 120c5d25c709d5c63011de663694ee2a2bfd1023..2ecb772c92b31d84798c6f75d7085db75da7aac5 100644 (file)
 
 #include "mpc83xx.h"
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-#endif
-
 /* ************************************************************************
  *
  * Setup the architecture
index d64d5a5ae00cfa0b7aa9ca83a18f446dbdb7369a..8607441c3953d28894719ad183eb11981af21dd0 100644 (file)
 
 #include "mpc83xx.h"
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-#endif
-
 #define BCSR5_INT_USB          0x02
 /* Note: This is only for PB, not for PB+PIB
  * On PB only port0 is connected using ULPI */
index bf3be3741129e46661738c9e737a4ec87e411e9f..0e615fd65c1fd1050c91a833a920fa03945f834d 100644 (file)
 #define DBG(fmt...)
 #endif
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-#endif
-
 static u8 *bcsr_regs = NULL;
 
 /* ************************************************************************
index a4995de6e737fd0c601a277b1681c00dc87afca6..4100e17f4cb278bd13110ee662ace7bee4b49eaf 100644 (file)
 #include <asm/fs_pd.h>
 #endif
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-#endif
-
 #ifdef CONFIG_PCI
 static int mpc85xx_exclude_device(u_char bus, u_char devfn)
 {
index 40592540ec771c271cef3b165309a88eb8a2c192..fa6b6be6cadad87fc66b0f35763d78fa1fc953f5 100644 (file)
 #include <sysdev/fsl_soc.h>
 #include "mpc85xx.h"
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-#endif
-
 static int cds_pci_slot = 2;
 static volatile u8 *cadmus;
 
index 7310818bcc233126e0146d3f811634782736c810..f55ef5b94f73f39d0e7d7c70609b522a7937845e 100644 (file)
 #define DBG(fmt...)
 #endif
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-#endif
-
 /* ************************************************************************
  *
  * Setup the architecture
index 23f3e1bbf861d10584ee5e045368c7b7554ee98c..042dbce89771cfa19bc34842c77b04e97219b754 100644 (file)
 #define DBG(fmt...) do { } while(0)
 #endif
 
-#ifndef CONFIG_PCI
-unsigned long isa_io_base = 0;
-unsigned long isa_mem_base = 0;
-unsigned long pci_dram_offset = 0;
-#endif
-
-
 #ifdef CONFIG_PCI
 static void mpc86xx_8259_cascade(unsigned int irq, struct irq_desc *desc)
 {
index 4542e0c837c07681dd6d929f562e22efefa6786d..69eab173ae09ee4c30005abc3db70e52ad41ca20 100644 (file)
 
 #define MPC7448HPC2_PCI_CFG_PHYS 0xfb000000
 
-#ifndef CONFIG_PCI
-isa_io_base = MPC7448_HPC2_ISA_IO_BASE;
-isa_mem_base = MPC7448_HPC2_ISA_MEM_BASE;
-pci_dram_offset = MPC7448_HPC2_PCI_MEM_OFFSET;
-#endif
-
 extern void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);
 
 int mpc7448_hpc2_exclude_device(u_char bus, u_char devfn)
index a543a5242e34f783e7e6001175dd42e0d0cb2fe8..f7e0e0c7f8d80e75f40a0288172b4507eea0ab86 100644 (file)
@@ -18,9 +18,4 @@
 
 #include <asm/ppcboot.h>
 
-/* Base Addresses for the PCI bus
- */
-#define MPC7448_HPC2_PCI_MEM_OFFSET    (0x00000000)
-#define MPC7448_HPC2_ISA_IO_BASE       (0x00000000)
-#define MPC7448_HPC2_ISA_MEM_BASE      (0x00000000)
 #endif                         /* __PPC_PLATFORMS_MPC7448_HPC2_H */
index b85df45b1a84dcbfc37b93ee74365eaa3fcc8b31..15f650f987e75ba6ecf5f0db3c3f6bccff7af08b 100644 (file)
 
 #ifdef CONFIG_PPC_86xx
 
-#define _IO_BASE        isa_io_base
-#define _ISA_MEM_BASE   isa_mem_base
-#ifdef CONFIG_PCI
-#define PCI_DRAM_OFFSET pci_dram_offset
-#endif
-
 #define CPU0_BOOT_RELEASE 0x01000000
 #define CPU1_BOOT_RELEASE 0x02000000
 #define CPU_ALL_RELEASED (CPU0_BOOT_RELEASE | CPU1_BOOT_RELEASE)