powerpc: cleanup of unused Kconfig symbols
Subsystems (9)
[email protected]
maintainercover powerpc: cleanup of unused Kconfig symbols
A number of drivers have dependencies on symbols that we had in arch/ppc but nowhere else. On the basis that this is all dead code now, this series removes them completely.
I did not try to find symbols that are always enabled in arch/powerpc but not in arch/ppc, like CONFIG_PPC_MERGE, but Kumar mentioned that he was going to look into those.
You can pull these into powerpc/next from
git://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git ppc-removal-more
Arnd <><
Signature · 1 line
reposted to correct address...
PATCH 3/5 powerpc/ibm_iic: remove support for OCP
OCP is dead, so all code referring to it can go away as well.
--- drivers/i2c/busses/i2c-ibm_iic.c | 181 -------------------------------------- 1 files changed, 0 insertions(+), 181 deletions(-)
drivers/i2c/busses/i2c-ibm_iic.c +0 -181
@@ -42,13 +42,7 @@#include <asm/io.h> #include <linux/i2c.h> #include <linux/i2c-id.h> - -#ifdef CONFIG_IBM_OCP -#include <asm/ocp.h> -#include <asm/ibm4xx.h> -#else #include <linux/of_platform.h> -#endif #include "i2c-ibm_iic.h"
@@ -665,180 +659,6 @@ static inline u8 iic_clckdiv(unsigned int opb)return (u8)((opb +9 ) /10 -1 ); } -#ifdef CONFIG_IBM_OCP -/* -* Register single IIC interface -*/ -static int __devinit iic_probe (struct ocp_device *ocp){ - -struct ibm_iic_private * dev; -struct i2c_adapter * adap; -struct ocp_func_iic_data * iic_data = ocp->def->additions; -int ret; - -if (!iic_data) -printk (KERN_WARNING "ibm-iic%d: missing additional data!\n" , - ocp->def->index); - -if (!(dev =kzalloc (sizeof (*dev),GFP_KERNEL ))) { -printk (KERN_ERR "ibm-iic%d: failed to allocate device data\n" , - ocp->def->index); -return -ENOMEM ; - } - - dev->idx = ocp->def->index; -ocp_set_drvdata (ocp, dev); - -if (!request_mem_region (ocp->def->paddr,sizeof (struct iic_regs ), -"ibm_iic" )) { - ret = -EBUSY ; - goto fail1; - } - -if (!(dev->vaddr =ioremap (ocp->def->paddr,sizeof (struct iic_regs )))){ -printk (KERN_ERR "ibm-iic%d: failed to ioremap device registers\n" , - dev->idx); - ret = -ENXIO ; - goto fail2; - } - -init_waitqueue_head (&dev->wq); - - dev->irq = iic_force_poll ?-1 : ocp->def->irq; -if (dev->irq >=0 ){ -/* Disable interrupts until we finish initialization, -assumes level-sensitive IRQ setup... -*/ -iic_interrupt_mode (dev,0 ); -if (request_irq (dev->irq, iic_handler,0 ,"IBM IIC" , dev)){ -printk (KERN_ERR "ibm-iic%d: request_irq %d failed\n" , - dev->idx, dev->irq); -/* Fallback to the polling mode */ - dev->irq =-1 ; - } - } - -if (dev->irq <0 ) -printk (KERN_WARNING "ibm-iic%d: using polling mode\n" , - dev->idx); - -/* Board specific settings */ - dev->fast_mode = iic_force_fast ?1 : (iic_data ? iic_data->fast_mode :0 ); - -/* clckdiv is the same for *all* IIC interfaces, -* but I'd rather make a copy than introduce another global. --ebs -*/ - dev->clckdiv =iic_clckdiv (ocp_sys_info.opb_bus_freq); -DBG ("%d: clckdiv = %d\n" , dev->idx, dev->clckdiv); - -/* Initialize IIC interface */ -iic_dev_init (dev); - -/* Register it with i2c layer */ - adap = &dev->adap; - adap->dev.parent = &ocp->dev; -strcpy (adap->name,"IBM IIC" ); -i2c_set_adapdata (adap, dev); - adap->id =I2C_HW_OCP ; - adap->class =I2C_CLASS_HWMON ; - adap->algo = &iic_algo; - adap->client_register =NULL ; - adap->client_unregister =NULL ; - adap->timeout =1 ; - -/* -* If "dev->idx" is negative we consider it as zero. -* The reason to do so is to avoid sysfs names that only make -* sense when there are multiple adapters. -*/ - adap->nr = dev->idx >=0 ? dev->idx :0 ; - -if ((ret =i2c_add_numbered_adapter (adap)) <0 ) { -printk (KERN_ERR "ibm-iic%d: failed to register i2c adapter\n" , - dev->idx); - goto fail; - } - -printk (KERN_INFO "ibm-iic%d: using %s mode\n" , dev->idx, - dev->fast_mode ?"fast (400 kHz)" :"standard (100 kHz)" ); - -return 0 ; - -fail: -if (dev->irq >=0 ){ -iic_interrupt_mode (dev,0 ); -free_irq (dev->irq, dev); - } - -iounmap (dev->vaddr); -fail2: -release_mem_region (ocp->def->paddr,sizeof (struct iic_regs )); -fail1: -ocp_set_drvdata (ocp,NULL ); -kfree (dev); -return ret; -} - -/* -* Cleanup initialized IIC interface -*/ -static void __devexit iic_remove(struct ocp_device *ocp) -{ -struct ibm_iic_private * dev = (struct ibm_iic_private *)ocp_get_drvdata (ocp); -BUG_ON (dev ==NULL ); -if (i2c_del_adapter (&dev->adap)){ -printk (KERN_ERR "ibm-iic%d: failed to delete i2c adapter :(\n" , - dev->idx); -/* That's *very* bad, just shutdown IRQ ... */ -if (dev->irq >=0 ){ -iic_interrupt_mode (dev,0 ); -free_irq (dev->irq, dev); - dev->irq =-1 ; - } - }else { -if (dev->irq >=0 ){ -iic_interrupt_mode (dev,0 ); -free_irq (dev->irq, dev); - } -iounmap (dev->vaddr); -release_mem_region (ocp->def->paddr,sizeof (struct iic_regs )); -kfree (dev); - } -} - -static struct ocp_device_id ibm_iic_ids[]__devinitdata = -{ - { .vendor =OCP_VENDOR_IBM , .function =OCP_FUNC_IIC }, - { .vendor =OCP_VENDOR_INVALID } -}; - -MODULE_DEVICE_TABLE (ocp, ibm_iic_ids); - -static struct ocp_driver ibm_iic_driver = -{ - .name ="iic" , - .id_table = ibm_iic_ids, - .probe = iic_probe, - .remove =__devexit_p (iic_remove), -#if defined(CONFIG_PM) - .suspend =NULL , - .resume =NULL , -#endif -}; - -static int __init iic_init (void ) -{ -printk (KERN_INFO "IBM IIC driver v" DRIVER_VERSION "\n" ); -return ocp_register_driver (&ibm_iic_driver); -} - -static void __exit iic_exit(void) -{ -ocp_unregister_driver (&ibm_iic_driver); -} - -#else /* !CONFIG_IBM_OCP */ -static int __devinit iic_request_irq (struct of_device *ofdev,struct ibm_iic_private *dev) {
@@ -1011,7 +831,6 @@ static void __exit iic_exit(void) {of_unregister_platform_driver (&ibm_iic_driver); } -#endif /* CONFIG_IBM_OCP */ module_init (iic_init);module_exit (iic_exit);
Signature · 9 lines
1.5.4.3 -- _______________________________________________ i2c mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/i2c
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 3/5] powerpc/ibm_iic: remove support for OCP
Hi Arnd,
Quoted 13 lines · On Tue, 10 Jun 2008 16:27:05 +0200, [email protected] wrote:
OCP is dead, so all code referring to it can go away as well.
--- drivers/i2c/busses/i2c-ibm_iic.c | 181 -------------------------------------- 1 files changed, 0 insertions(+), 181 deletions(-)drivers/i2c/busses/i2c-ibm_iic.c +0
-0
drivers/i2c/busses/i2c-ibm_iic.c
Quoted 1 line
drivers/i2c/busses/i2c-ibm_iic.c +0
-0
I've already received, and applied, a patch doing exactly that, from Stefan Roese:
http://lists.lm-sensors.org/pipermail/i2c/2008-June/003910.html
Signature · 6 lines
Jean Delvare _______________________________________________ i2c mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/i2c
Re: [PATCH 3/5] powerpc/ibm_iic: remove support for OCP
In reply to [email protected]Quoted 1 line · On Tue, 10 Jun 2008 16:27:05 +0200 [email protected] wrote:
OCP is dead, so all code referring to it can go away as well.
Stefan already sent this out, and I think Jean has it queued up.
josh
Re: [PATCH 3/5] powerpc/ibm_iic: remove support for OCP
In reply to [email protected]Hi Arnd,
Quoted 6 lines · On Tue, 10 Jun 2008 16:27:05 +0200 [email protected] wrote:
OCP is dead, so all code referring to it can go away as well.
There is already a patch in the i2c tree to do this one. Commit id c73327b0f4d96f76a9b57eecdc7594a98c04ab62 ("i2c-ibm_iic: Remove deprecated OCP style part") in today's linux-next tree if you want to compare.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
Arnd Bergmann
maintainerRe: [PATCH 3/5] powerpc/ibm_iic: remove support for OCP
Quoted 3 lines · Stephen Rothwell
There is already a patch in the i2c tree to do this one. Commit id
c73327b0f4d96f76a9b57eecdc7594a98c04ab62("i2c-ibm_iic: Remove deprecated OCP style part") in today's linux-next tree if you want to compare.
Ok, I removed it from my git tree now.
Arnd <><
[email protected]
maintainerPATCH 1/5 powerpc: remove mpc8xx-ide driver
In reply to [email protected]This driver was only used by arch/ppc code and is obsolete now with the move to common arch/powerpc code.
--- drivers/ide/Kconfig | 10 - drivers/ide/ppc/Makefile | 1 - drivers/ide/ppc/mpc8xx.c | 847 ---------------------------------------------- 3 files changed, 0 insertions(+), 858 deletions(-) delete mode 100644 drivers/ide/ppc/mpc8xx.c
drivers/ide/Kconfig +0 -10
@@ -918,16 +918,6 @@ config BLK_DEV_PALMCHIP_BK3710 Say Y here if you want to support the onchip IDE controller on the TI DaVinci SoC - -config BLK_DEV_MPC8xx_IDE - tristate "MPC8xx IDE support" - depends on 8xx && (LWMON || IVMS8 || IVML24 || TQM8xxL) && IDE=y && BLK_DEV_IDE=y && !PPC_MERGE - help - This option provides support for IDE on Motorola MPC8xx Systems. - Please see 'Type of MPC8xx IDE interface' for details. - - If unsure, say N. - choice prompt "Type of MPC8xx IDE interface" depends on BLK_DEV_MPC8xx_IDE
drivers/ide/ppc/Makefile +0 -1
@@ -1,3 +1,2 @@ obj-$(CONFIG_BLK_DEV_IDE_PMAC) += pmac.o -obj-$(CONFIG_BLK_DEV_MPC8xx_IDE) += mpc8xx.o
drivers/ide/ppc/mpc8xx.c deleted +0 -847
847 lines not on this page · raw message
Signature · 3 lines
1.5.4.3 --
Bartlomiej Zolnierkiewicz
AppliedRe: [PATCH 1/5] powerpc: remove mpc8xx-ide driver
Hi,
Quoted 6 lines · On Tuesday 10 June 2008, [email protected] wrote:
This driver was only used by
arch/ppccode and is obsolete now with the move to commonarch/powerpccode.Cc Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>
Quoted 6 lines
--- drivers/ide/Kconfig | 10 - drivers/ide/ppc/Makefile | 1 - drivers/ide/ppc/mpc8xx.c | 847 ---------------------------------------------- 3 files changed, 0 insertions(+), 858 deletions(-) delete mode 100644 drivers/ide/ppc/mpc8xx.c
Thanks, applied.
[ there is a couple of patches in IDE tree touching this driver so I needed
to refresh the patch - IOW it now removes the "freshest" mpc8xx.c version ]
Paul/Kumar: I hope you are fine with this.
Bart
Kumar Gala
Acked-byRe: [PATCH 1/5] powerpc: remove mpc8xx-ide driver
Quoted 18 lines · Bartlomiej Zolnierkiewicz
Hi,
Quoted 6 lines · On Tuesday 10 June 2008, [email protected] wrote:
This driver was only used by
arch/ppccode and is obsolete now with the move to commonarch/powerpccode.Cc Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>Quoted 7 lines
---
drivers/ide/Kconfig | 10 - drivers/ide/ppc/Makefile | 1 - drivers/ide/ppc/mpc8xx.c | 847 ---------------------------------------------- 3 files changed, 0 insertions(+), 858 deletions(-)delete mode 100644
drivers/ide/ppc/mpc8xx.c
Quoted 7 lines
Thanks, applied.
[ there is a couple of patches in IDE tree touching this driver so I needed
to refresh the patch - IOW it now removes the "freshest"mpc8xx.c
version ]Paul/Kumar: I hope you are fine with this.
- k
Arnd Bergmann
maintainerRe: [PATCH 1/5] powerpc: remove mpc8xx-ide driver
Quoted 5 lines · Kumar Gala
Quoted 2 lines · Bartlomiej Zolnierkiewicz
Thanks, applied.
Acked-by Kumar Gala <[email protected]>
Ok, I've updated my git tree again, to remove this one and the commproc.h changes that have gone into the m68k-nommu tree.
The patches remain now, and are still available for powerpc-next at
git://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git ppc-removal-more
Arnd <><
---
commit 2c2732c402532e6be26d58f38abd39f56070d569
Author: Arnd Bergmann <[email protected]> Date: Tue Jun 10 15:55:40 2008 +0200
powerpc/mtd: remove dead platform specific maps
It is no longer possible to select compilation of these drivers with arch/powerpc, so the code should be removed.
New platforms should use physmap_of.
drivers/mtd/maps/Kconfig | 57 -------- drivers/mtd/maps/Makefile | 6 - drivers/mtd/maps/mbx860.c | 100 ------------- drivers/mtd/maps/ocotea.c | 154 --------------------- drivers/mtd/maps/redwood.c | 176 ----------------------- drivers/mtd/maps/rpxlite.c | 66 --------- drivers/mtd/maps/tqm8xxl.c | 261 ----------------------------------- drivers/mtd/maps/wr_sbc82xx_flash.c | 180 ------------------------ 8 files changed, 0 insertions(+), 1000 deletions(-)
commit 41f911f000f3935ba85adb571cb9eb54ee9bed68
Author: Arnd Bergmann <[email protected]> Date: Tue Jun 10 15:45:11 2008 +0200
powerpc: remove references to dead platforms
The SPRUCE, LOPEC, SANDPOINT, PPC_GEN550 and PPLUS Kconfig symbols were only defined for platforms in arch/ppc that are no longer there with arch/powerpc. All compile time switches based on these symbols can now be removed.
arch/powerpc/Kconfig | 4 - arch/powerpc/Kconfig.debug | 2 +- drivers/ide/pci/sl82c105.c | 4 - drivers/input/serio/i8042-ppcio.h | 75 -------------------- drivers/net/Kconfig | 3 +- drivers/net/fec.c | 35 +--------- drivers/net/smc91x.h | 37 +---------- drivers/pcmcia/m8xx_pcmcia.c | 136 ------------------------------------- include/asm-powerpc/ide.h | 12 --- 9 files changed, 4 insertions(+), 304 deletions(-)
commit d790ca4b21f14ee1943d9193808f3b8a980b650e
Author: Arnd Bergmann <[email protected]> Date: Tue Jun 10 15:32:56 2008 +0200
powerpc: remove hdpu drivers
The CONFIG_HDPU option is gone with the removal of arch/ppc, so the drivers have become dead code that can be removed.
drivers/misc/Makefile | 1 - drivers/misc/hdpuftrs/Makefile | 1 - drivers/misc/hdpuftrs/hdpu_cpustate.c | 249 --------------------------------- drivers/misc/hdpuftrs/hdpu_nexus.c | 150 -------------------- 4 files changed, 0 insertions(+), 401 deletions(-)
[email protected]
maintainerPATCH 2/5 powerpc: remove hdpu drivers
In reply to [email protected]The CONFIG_HDPU option is gone with the removal of arch/ppc, so the drivers have become dead code that can be removed.
--- drivers/misc/Makefile | 1 - drivers/misc/hdpuftrs/Makefile | 1 - drivers/misc/hdpuftrs/hdpu_cpustate.c | 249 --------------------------------- drivers/misc/hdpuftrs/hdpu_nexus.c | 150 -------------------- 4 files changed, 0 insertions(+), 401 deletions(-) delete mode 100644 drivers/misc/hdpuftrs/Makefile delete mode 100644 drivers/misc/hdpuftrs/hdpu_cpustate.c delete mode 100644 drivers/misc/hdpuftrs/hdpu_nexus.c
drivers/misc/Makefile +0 -1
@@ -4,7 +4,6 @@ obj- := misc.o # Dummy rule to force built-in.o to be made obj-$(CONFIG_IBM_ASM) += ibmasm/ -obj-$(CONFIG_HDPU_FEATURES) += hdpuftrs/ obj-$(CONFIG_MSI_LAPTOP) += msi-laptop.o obj-$(CONFIG_ACER_WMI) += acer-wmi.o obj-$(CONFIG_ASUS_LAPTOP) += asus-laptop.o
drivers/misc/hdpuftrs/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-$(CONFIG_HDPU_FEATURES) := hdpu_cpustate.o hdpu_nexus.o
drivers/misc/hdpuftrs/hdpu_cpustate.c deleted +0 -249
249 lines not on this page · raw message
drivers/misc/hdpuftrs/hdpu_nexus.c deleted +0 -150
150 lines not on this page · raw message
Signature · 3 lines
1.5.4.3 --
[email protected]
maintainerPATCH 4/5 powerpc: remove references to dead platforms
In reply to [email protected]The SPRUCE, LOPEC, SANDPOINT, PPC_GEN550 and PPLUS Kconfig symbols were only defined for platforms in arch/ppc that are no longer there with arch/powerpc. All compile time switches based on these symbols can now be removed.
--- arch/powerpc/Kconfig | 4 - arch/powerpc/Kconfig.debug | 2 +- drivers/ide/pci/sl82c105.c | 4 - drivers/input/serio/i8042-ppcio.h | 75 -------------------- drivers/net/Kconfig | 3 +- drivers/net/fec.c | 35 +--------- drivers/net/smc91x.h | 37 +---------- drivers/pcmcia/m8xx_pcmcia.c | 136 ------------------------------------- include/asm-m68knommu/commproc.h | 58 ---------------- include/asm-powerpc/ide.h | 12 --- 10 files changed, 4 insertions(+), 362 deletions(-)
arch/powerpc/Kconfig +0 -4
@@ -327,10 +327,6 @@ config PHYP_DUMP If unsure, say "N" -config PPCBUG_NVRAM - bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC - default y if PPC_PREP - config IRQ_ALL_CPUS bool "Distribute interrupts on all CPUs by default" depends on SMP && !MV64360
arch/powerpc/Kconfig.debug +1 -1
@@ -50,7 +50,7 @@ config DEBUGGER config KGDB bool "Include kgdb kernel debugger" - depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx) + depends on DEBUGGER && (BROKEN || 4xx) select DEBUG_INFO help Include in-kernel hooks for kgdb, the Linux kernel source level
drivers/ide/pci/sl82c105.c +0 -4
@@ -307,10 +307,6 @@ static const struct ide_port_info sl82c105_chipset __devinitdata = { .dma_ops = &sl82c105_dma_ops, .host_flags =IDE_HFLAG_IO_32BIT |IDE_HFLAG_UNMASK_IRQS | -/* FIXME: check for Compatibility mode in generic IDE PCI code */ -#if defined(CONFIG_LOPEC ) || defined(CONFIG_SANDPOINT ) -IDE_HFLAG_FORCE_LEGACY_IRQS | -#endifIDE_HFLAG_SERIALIZE_DMA | IDE_HFLAG_NO_AUTODMA, .pio_mask = ATA_PIO5,
drivers/input/serio/i8042-ppcio.h +0 -75
81 lines not on this page · raw message
drivers/net/Kconfig +1 -2
@@ -891,8 +891,7 @@ config SMC91X tristate "SMC 91C9x/91C1xxx support" select CRC32 select MII - depends on ARM || REDWOOD_5 || REDWOOD_6 || M32R || SUPERH || \ - SOC_AU1X00 || BLACKFIN || MN10300 + depends on ARM || M32R || SUPERH || SOC_AU1X00 || BLACKFIN || MN10300 help This is a driver for SMC's 91x series of Ethernet chipsets, including the SMC91C94 and the SMC91C111. Say Y if you want it
drivers/net/fec.c +1 -34
@@ -67,7 +67,7 @@#define FEC_MAX_PORTS 1#endif -#if defined(CONFIG_FADS ) || defined(CONFIG_RPXCLASSIC ) || defined(CONFIG_M5272 ) +#if defined(CONFIG_FADS ) || defined(CONFIG_M5272 )#define HAVE_mii_link_interrupt#endif
@@ -1235,14 +1235,9 @@ static phy_info_t const * const phy_info[] = {/* ------------------------------------------------------------------------- */ #ifdef HAVE_mii_link_interrupt -#ifdef CONFIG_RPXCLASSIC -static void -mii_link_interrupt (void *dev_id); -#else static irqreturn_t mii_link_interrupt (int irq,void * dev_id);#endif -#endif #if defined(CONFIG_M5272 )/*
@@ -1796,19 +1791,6 @@ static void __inline__ fec_request_intrs(struct net_device *dev)if (request_8xxirq (FEC_INTERRUPT , fec_enet_interrupt,0 ,"fec" , dev) !=0 )panic ("Could not allocate FEC IRQ!" ); -#ifdef CONFIG_RPXCLASSIC -/* Make Port C, bit 15 an input that causes interrupts. -*/ - immap->im_ioport.iop_pcpar &= ~0x0001 ; - immap->im_ioport.iop_pcdir &= ~0x0001 ; - immap->im_ioport.iop_pcso &= ~0x0001 ; - immap->im_ioport.iop_pcint |=0x0001 ; -cpm_install_handler (CPMVEC_PIO_PC15 , mii_link_interrupt, dev); - -/* Make LEDS reflect Link status. -*/ - *((uint *)RPX_CSR_ADDR ) &= ~BCSR2_FETHLEDMODE ; -#endif #ifdef CONFIG_FADS if (request_8xxirq (SIU_IRQ2 , mii_link_interrupt,0 ,"mii" , dev) !=0 )panic ("Could not allocate MII IRQ!" );
@@ -1821,16 +1803,6 @@ static void __inline__ fec_get_mac(struct net_device *dev) bd = (bd_t *)__res;memcpy (dev->dev_addr, bd->bi_enetaddr,ETH_ALEN ); - -#ifdef CONFIG_RPXCLASSIC -/* The Embedded Planet boards have only one MAC address in -* the EEPROM, but can have two Ethernet ports. For the -* FEC port, we create another address by setting one of -* the address bits above something that would have (up to -* now) been allocated. -*/ - dev->dev_adrd[3 ] |=0x80 ; -#endif }static void __inline__fec_set_mii (struct net_device *dev,struct fec_enet_private *fep)
@@ -2109,13 +2081,8 @@ mii_discover_phy(uint mii_reg, struct net_device *dev)/* This interrupt occurs when the PHY detects a link change. */ #ifdef HAVE_mii_link_interrupt -#ifdef CONFIG_RPXCLASSIC -static void -mii_link_interrupt(void *dev_id) -#elsestatic irqreturn_t mii_link_interrupt (int irq,void * dev_id) -#endif {struct net_device *dev = dev_id;struct fec_enet_private *fep =netdev_priv (dev);
drivers/net/smc91x.h +1 -36
@@ -106,44 +106,9 @@ random_ether_addr(addr); \ } \ } while (0) -#elif defined(CONFIG_REDWOOD_5) || defined(CONFIG_REDWOOD_6) - -/* We can only do 16-bit reads and writes in the static memory space. */ -#define SMC_CAN_USE_8BIT 0 -#define SMC_CAN_USE_16BIT 1 -#define SMC_CAN_USE_32BIT 0 -#define SMC_NOWAIT 1 - -#define SMC_IO_SHIFT 0 - -#define SMC_inw (a, r) in_be16((volatile u16 *)((a) + (r))) -#define SMC_outw (v, a, r) out_be16((volatile u16 *)((a) + (r)), v) -#define SMC_insw (a, r, p, l) \ - do { \ - unsigned long __port = (a) + (r); \ - u16 *__p = (u16 *)(p); \ - int __l = (l); \ - insw(__port, __p, __l); \ - while (__l > 0) { \ - *__p = swab16(*__p); \ - __p++; \ - __l--; \ - } \ - } while (0) -#define SMC_outsw (a, r, p, l) \ - do { \ - unsigned long __port = (a) + (r); \ - u16 *__p = (u16 *)(p); \ - int __l = (l); \ - while (__l > 0) { \ -/* Believe it or not, the swab isn't needed. */ \ -outw (/* swab16 */ (*__p++), __port); \ - __l--; \ - } \ - } while (0) -#define SMC_IRQ_FLAGS (0)#elif defined(CONFIG_SA1100_PLEB) +/* We can only do 16-bit reads and writes in the static memory space. */ #define SMC_CAN_USE_8BIT 1#define SMC_CAN_USE_16BIT 1
drivers/pcmcia/m8xx_pcmcia.c +0 -136
154 lines not on this page · raw message
include/asm-m68knommu/commproc.h +0 -58
64 lines not on this page · raw message
include/asm-powerpc/ide.h +0 -12
@@ -34,12 +34,6 @@/* FIXME: use ide_platform host driver */ static __inline__int ide_default_irq (unsigned long base) { -#ifdef CONFIG_PPLUS -switch (base) { -case 0x1f0 :return 14 ; -case 0x170 :return 15 ; - } -#endif #ifdef CONFIG_PPC_PREP switch (base) {case 0x1f0 :return 13 ;
@@ -56,12 +50,6 @@ static __inline__ int ide_default_irq(unsigned long base)/* FIXME: use ide_platform host driver */ static __inline__unsigned long ide_default_io_base (int index) { -#ifdef CONFIG_PPLUS -switch (index) { -case 0 :return 0x1f0 ; -case 1 :return 0x170 ; - } -#endif #ifdef CONFIG_PPC_PREP switch (index) {case 0 :return 0x1f0 ;
Signature · 3 lines
1.5.4.3 --
[email protected]
maintainerPATCH 5/5 powerpc/mtd: remove dead platform specific maps
In reply to [email protected]It is no longer possible to select compilation of these drivers with arch/powerpc, so the code should be removed.
New platforms should use physmap_of.
--- drivers/mtd/maps/Kconfig | 57 -------- drivers/mtd/maps/Makefile | 6 - drivers/mtd/maps/mbx860.c | 100 ------------- drivers/mtd/maps/ocotea.c | 154 --------------------- drivers/mtd/maps/redwood.c | 176 ----------------------- drivers/mtd/maps/rpxlite.c | 66 --------- drivers/mtd/maps/tqm8xxl.c | 261 ----------------------------------- drivers/mtd/maps/wr_sbc82xx_flash.c | 180 ------------------------ 8 files changed, 0 insertions(+), 1000 deletions(-) delete mode 100644 drivers/mtd/maps/mbx860.c delete mode 100644 drivers/mtd/maps/ocotea.c delete mode 100644 drivers/mtd/maps/redwood.c delete mode 100644 drivers/mtd/maps/rpxlite.c delete mode 100644 drivers/mtd/maps/tqm8xxl.c delete mode 100644 drivers/mtd/maps/wr_sbc82xx_flash.c
drivers/mtd/maps/Kconfig +0 -57
@@ -297,34 +297,6 @@ config MTD_SBC8240 Flash access on the SBC8240 board from Wind River. See <http://www.windriver.com/products/sbc8240/> -config MTD_TQM8XXL - tristate "CFI Flash device mapped on TQM8XXL" - depends on MTD_CFI && TQM8xxL - help - The TQM8xxL PowerPC board has up to two banks of CFI-compliant - chips, currently uses AMD one. This 'mapping' driver supports - that arrangement, allowing the CFI probe and command set driver - code to communicate with the chips on the TQM8xxL board. More at - <http://www.denx.de/embedded-ppc-en.html>. - -config MTD_RPXLITE - tristate "CFI Flash device mapped on RPX Lite or CLLF" - depends on MTD_CFI && (RPXCLASSIC || RPXLITE) - help - The RPXLite PowerPC board has CFI-compliant chips mapped in - a strange sparse mapping. This 'mapping' driver supports that - arrangement, allowing the CFI probe and command set driver code - to communicate with the chips on the RPXLite board. More at - <http://www.embeddedplanet.com/>. - -config MTD_MBX860 - tristate "System flash on MBX860 board" - depends on MTD_CFI && MBX - help - This enables access routines for the flash chips on the Motorola - MBX860 board. If you have one of these boards and would like - to use the flash chips on it, say 'Y'. - config MTD_DBOX2 tristate "CFI Flash device mapped on D-Box2" depends on DBOX2 && MTD_CFI_INTELSTD && MTD_CFI_INTELEXT && MTD_CFI_AMDSTD
@@ -356,22 +328,6 @@ config MTD_EBONY Ebony board. If you have one of these boards and would like to use the flash chips on it, say 'Y'. -config MTD_OCOTEA - tristate "Flash devices mapped on IBM 440GX Ocotea" - depends on MTD_CFI && OCOTEA && !PPC_MERGE - help - This enables access routines for the flash chips on the IBM 440GX - Ocotea board. If you have one of these boards and would like to - use the flash chips on it, say 'Y'. - -config MTD_REDWOOD - tristate "CFI Flash devices mapped on IBM Redwood" - depends on MTD_CFI && ( REDWOOD_4 || REDWOOD_5 || REDWOOD_6 ) - help - This enables access routines for the flash chips on the IBM - Redwood board. If you have one of these boards and would like to - use the flash chips on it, say 'Y'. - config MTD_SOLUTIONENGINE tristate "CFI Flash device mapped on Hitachi SolutionEngine" depends on SUPERH && SOLUTION_ENGINE && MTD_CFI && MTD_REDBOOT_PARTS
@@ -523,19 +479,6 @@ config MTD_UCLINUX help Map driver to support image based filesystems for uClinux. -config MTD_WRSBC8260 - tristate "Map driver for WindRiver PowerQUICC II MPC82xx board" - depends on (SBC82xx || SBC8560) - select MTD_PARTITIONS - select MTD_MAP_BANK_WIDTH_4 - select MTD_MAP_BANK_WIDTH_1 - select MTD_CFI_I1 - select MTD_CFI_I4 - help - Map driver for WindRiver PowerQUICC II MPC82xx board. Drives - all three flash regions on CS0, CS1 and CS6 if they are configured - correctly by the boot loader. - config MTD_DMV182 tristate "Map driver for Dy-4 SVME/DMV-182 board." depends on DMV182
drivers/mtd/maps/Makefile +0 -6
@@ -21,7 +21,6 @@ obj-$(CONFIG_MTD_ICHXROM) += ichxrom.o obj-$(CONFIG_MTD_CK804XROM) += ck804xrom.o obj-$(CONFIG_MTD_TSUNAMI) += tsunami_flash.o obj-$(CONFIG_MTD_PXA2XX) += pxa2xx-flash.o -obj-$(CONFIG_MTD_MBX860) += mbx860.o obj-$(CONFIG_MTD_CEIVA) += ceiva.o obj-$(CONFIG_MTD_OCTAGON) += octagon-5066.o obj-$(CONFIG_MTD_PHYSMAP) += physmap.o
@@ -29,8 +28,6 @@ obj-$(CONFIG_MTD_PHYSMAP_OF) += physmap_of.o obj-$(CONFIG_MTD_PMC_MSP_EVM) += pmcmsp-flash.o obj-$(CONFIG_MTD_PMC_MSP_RAMROOT)+= pmcmsp-ramroot.o obj-$(CONFIG_MTD_PCMCIA) += pcmciamtd.o -obj-$(CONFIG_MTD_RPXLITE) += rpxlite.o -obj-$(CONFIG_MTD_TQM8XXL) += tqm8xxl.o obj-$(CONFIG_MTD_SA1100) += sa1100-flash.o obj-$(CONFIG_MTD_IPAQ) += ipaq-flash.o obj-$(CONFIG_MTD_SBC_GXX) += sbc_gxx.o
@@ -48,19 +45,16 @@ obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o obj-$(CONFIG_MTD_EDB7312) += edb7312.o obj-$(CONFIG_MTD_IMPA7) += impa7.o obj-$(CONFIG_MTD_FORTUNET) += fortunet.o -obj-$(CONFIG_MTD_REDWOOD) += redwood.o obj-$(CONFIG_MTD_UCLINUX) += uclinux.o obj-$(CONFIG_MTD_NETtel) += nettel.o obj-$(CONFIG_MTD_SCB2_FLASH) += scb2_flash.o obj-$(CONFIG_MTD_EBONY) += ebony.o -obj-$(CONFIG_MTD_OCOTEA) += ocotea.o obj-$(CONFIG_MTD_WALNUT) += walnut.o obj-$(CONFIG_MTD_H720X) += h720x-flash.o obj-$(CONFIG_MTD_SBC8240) += sbc8240.o obj-$(CONFIG_MTD_NOR_TOTO) += omap-toto-flash.o obj-$(CONFIG_MTD_IXP4XX) += ixp4xx.o obj-$(CONFIG_MTD_IXP2000) += ixp2000.o -obj-$(CONFIG_MTD_WRSBC8260) += wr_sbc82xx_flash.o obj-$(CONFIG_MTD_DMV182) += dmv182.o obj-$(CONFIG_MTD_SHARP_SL) += sharpsl-flash.o obj-$(CONFIG_MTD_PLATRAM) += plat-ram.o
drivers/mtd/maps/mbx860.c deleted +0 -100
100 lines not on this page · raw message
drivers/mtd/maps/ocotea.c deleted +0 -154
154 lines not on this page · raw message
drivers/mtd/maps/redwood.c deleted +0 -176
176 lines not on this page · raw message
drivers/mtd/maps/rpxlite.c deleted +0 -66
66 lines not on this page · raw message
drivers/mtd/maps/tqm8xxl.c deleted +0 -261
261 lines not on this page · raw message
drivers/mtd/maps/wr_sbc82xx_flash.c deleted +0 -180
180 lines not on this page · raw message
Signature · 3 lines
1.5.4.3 --