powerpc: Remove use of CONFIG_PPC_MERGE
Subsystems (17)
PATCH 2/9 fs-enet: remove code associated with !CONFIG_PPC_MERGE
In reply to Kumar GalaNow that arch/ppc is gone we don't need CONFIG_PPC_MERGE anymore remove the dead code associated with !CONFIG_PPC_MERGE.
With this change the pre_request_irq() and post_free_irq() calls became nops so they have been removed. Also removed fs_request_irq() and fs_free_irq() and just called request_irq() and free_irq().
--- drivers/net/fs_enet/fs_enet-main.c | 22 +++------------------- drivers/net/fs_enet/fs_enet.h | 2 -- drivers/net/fs_enet/mac-fcc.c | 12 ------------ drivers/net/fs_enet/mac-fec.c | 30 ------------------------------ drivers/net/fs_enet/mac-scc.c | 26 -------------------------- 5 files changed, 3 insertions(+), 89 deletions(-)
drivers/net/fs_enet/fs_enet-main.c +3 -19
@@ -664,23 +664,6 @@ static int fs_enet_start_xmit(struct sk_buff *skb, struct net_device *dev)return NETDEV_TX_OK ; } -static int fs_request_irq (struct net_device *dev,int irq,const char *name, -irq_handler_t irqf) -{ -struct fs_enet_private *fep =netdev_priv (dev); - - (*fep->ops->pre_request_irq)(dev, irq); -return request_irq (irq, irqf,IRQF_SHARED , name, dev); -} - -static void fs_free_irq (struct net_device *dev,int irq) -{ -struct fs_enet_private *fep =netdev_priv (dev); - -free_irq (irq, dev); - (*fep->ops->post_free_irq)(dev, irq); -} -static void fs_timeout (struct net_device *dev) {struct fs_enet_private *fep =netdev_priv (dev);
@@ -796,7 +779,8 @@ static int fs_enet_open(struct net_device *dev)napi_enable (&fep->napi);/* Install our interrupt handler. */ - r =fs_request_irq (dev, fep->interrupt,"fs_enet-mac" , fs_enet_interrupt); + r =request_irq (fep->interrupt, fs_enet_interrupt,IRQF_SHARED , +"fs_enet-mac" , dev);if (r !=0 ) { printk(KERN_ERR DRV_MODULE_NAME ": %s Could not allocate FS_ENET IRQ!", dev->name);
@@ -838,7 +822,7 @@ static int fs_enet_close(struct net_device *dev)/* release any irqs */ phy_disconnect (fep->phydev); fep->phydev =NULL ; -fs_free_irq (dev, fep->interrupt); +free_irq (fep->interrupt, dev);return 0 ; }
drivers/net/fs_enet/fs_enet.h +0 -2
@@ -34,8 +34,6 @@ struct fs_ops {void (*adjust_link)(struct net_device *dev);void (*restart)(struct net_device *dev);void (*stop)(struct net_device *dev); -void (*pre_request_irq)(struct net_device *dev,int irq); -void (*post_free_irq)(struct net_device *dev,int irq);void (*napi_clear_rx_event)(struct net_device *dev);void (*napi_enable_rx)(struct net_device *dev);void (*napi_disable_rx)(struct net_device *dev);
drivers/net/fs_enet/mac-fcc.c +0 -12
@@ -421,16 +421,6 @@ static void stop(struct net_device *dev)fs_cleanup_bds (dev); } -static void pre_request_irq (struct net_device *dev,int irq) -{ -/* nothing */ -} - -static void post_free_irq (struct net_device *dev,int irq) -{ -/* nothing */ -} -static void napi_clear_rx_event (struct net_device *dev) {struct fs_enet_private *fep =netdev_priv (dev);
@@ -540,8 +530,6 @@ const struct fs_ops fs_fcc_ops = { .set_multicast_list = set_multicast_list, .restart = restart, .stop = stop, - .pre_request_irq = pre_request_irq, - .post_free_irq = post_free_irq, .napi_clear_rx_event = napi_clear_rx_event, .napi_enable_rx = napi_enable_rx, .napi_disable_rx = napi_disable_rx,
drivers/net/fs_enet/mac-fec.c +0 -30
@@ -313,11 +313,7 @@ static void restart(struct net_device *dev)* Clear any outstanding interrupt. */ FW (fecp, ievent,0xffc0 ); -#ifndef CONFIG_PPC_MERGE -FW (fecp, ivec, (fep->interrupt /2 ) <<29 ); -#else FW (fecp, ivec, (virq_to_hw (fep->interrupt) /2 ) <<29 ); -#endif /* * adjust to speed (only for DUET & RMII)
@@ -413,30 +409,6 @@ static void stop(struct net_device *dev) } } -static void pre_request_irq (struct net_device *dev,int irq) -{ -#ifndef CONFIG_PPC_MERGE -immap_t *immap = fs_enet_immap; -u32 siel; - -/* SIU interrupt */ -if (irq >=SIU_IRQ0 && irq <SIU_LEVEL7 ) { - - siel =in_be32 (&immap->im_siu_conf.sc_siel); -if ((irq &1 ) ==0 ) - siel |= (0x80000000 >> irq); -else - siel &= ~(0x80000000 >> (irq & ~1 )); -out_be32 (&immap->im_siu_conf.sc_siel, siel); - } -#endif -} - -static void post_free_irq (struct net_device *dev,int irq) -{ -/* nothing */ -} -static void napi_clear_rx_event (struct net_device *dev) {struct fs_enet_private *fep =netdev_priv (dev);
@@ -529,8 +501,6 @@ const struct fs_ops fs_fec_ops = { .set_multicast_list = set_multicast_list, .restart = restart, .stop = stop, - .pre_request_irq = pre_request_irq, - .post_free_irq = post_free_irq, .napi_clear_rx_event = napi_clear_rx_event, .napi_enable_rx = napi_enable_rx, .napi_disable_rx = napi_disable_rx,
drivers/net/fs_enet/mac-scc.c +0 -26
@@ -371,30 +371,6 @@ static void stop(struct net_device *dev)fs_cleanup_bds (dev); } -static void pre_request_irq (struct net_device *dev,int irq) -{ -#ifndef CONFIG_PPC_MERGE -immap_t *immap = fs_enet_immap; -u32 siel; - -/* SIU interrupt */ -if (irq >=SIU_IRQ0 && irq <SIU_LEVEL7 ) { - - siel =in_be32 (&immap->im_siu_conf.sc_siel); -if ((irq &1 ) ==0 ) - siel |= (0x80000000 >> irq); -else - siel &= ~(0x80000000 >> (irq & ~1 )); -out_be32 (&immap->im_siu_conf.sc_siel, siel); - } -#endif -} - -static void post_free_irq (struct net_device *dev,int irq) -{ -/* nothing */ -} -static void napi_clear_rx_event (struct net_device *dev) {struct fs_enet_private *fep =netdev_priv (dev);
@@ -488,8 +464,6 @@ const struct fs_ops fs_scc_ops = { .set_multicast_list = set_multicast_list, .restart = restart, .stop = stop, - .pre_request_irq = pre_request_irq, - .post_free_irq = post_free_irq, .napi_clear_rx_event = napi_clear_rx_event, .napi_enable_rx = napi_enable_rx, .napi_disable_rx = napi_disable_rx,
Signature · 1 line
1.5.5.1
PATCH 3/9 netdev: drop CONFIG_PPC_MERGE from Kconfig
Now that arch/ppc is dead CONFIG_PPC_MERGE is always defined for all powerpc platforms so we don't need to depend on it.
--- drivers/net/Kconfig | 2 +- drivers/net/ibm_newemac/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/Kconfig +1 -1
@@ -1813,7 +1813,7 @@ config FEC2 config FEC_MPC52xx tristate "MPC52xx FEC driver" - depends on PPC_MERGE && PPC_MPC52xx && PPC_BESTCOMM_FEC + depends on PPC_MPC52xx && PPC_BESTCOMM_FEC select CRC32 select PHYLIB ---help---
drivers/net/ibm_newemac/Kconfig +1 -1
@@ -1,6 +1,6 @@ config IBM_NEW_EMAC tristate "IBM EMAC Ethernet support" - depends on PPC_DCR && PPC_MERGE + depends on PPC_DCR select CRC32 help This driver supports the IBM EMAC family of Ethernet controllers
Signature · 1 line
1.5.5.1
PATCH 5/9 serial/mpc52xx_uart: remove code associated with !CONFIG_PPC_MERGE
In reply to Kumar GalaNow that arch/ppc is gone we don't need CONFIG_PPC_MERGE anymore remove the dead code associated with !CONFIG_PPC_MERGE.
--- drivers/serial/mpc52xx_uart.c | 181 +---------------------------------------- 1 files changed, 1 insertions(+), 180 deletions(-)
drivers/serial/mpc52xx_uart.c +1 -180
@@ -72,13 +72,8 @@#include <linux/console.h> #include <linux/delay.h> #include <linux/io.h> - -#if defined(CONFIG_PPC_MERGE )#include <linux/of.h> #include <linux/of_platform.h> -#else -#include <linux/platform_device.h> -#endif #include <asm/mpc52xx.h> #include <asm/mpc512x.h>
@@ -107,12 +102,11 @@ static struct uart_port mpc52xx_uart_ports[MPC52xx_PSC_MAXNUM];* it's cleared, then a memset(...,0,...) should be added to * the console_init */ -#if defined(CONFIG_PPC_MERGE ) +/* lookup table for matching device nodes to index numbers */ static struct device_node *mpc52xx_uart_nodes[MPC52xx_PSC_MAXNUM];static void mpc52xx_uart_of_enumerate (void ); -#endif #define PSC (port) ((struct mpc52xx_psc __iomem *)((port)->membase))
@@ -255,17 +249,12 @@ static void mpc52xx_psc_cw_restore_ints(struct uart_port *port)/* Search for bus-frequency property in this node or a parent */ static unsigned long mpc52xx_getuartclk (void *p) { -#if defined(CONFIG_PPC_MERGE )/* * 5200 UARTs have a / 32 prescaler * but the generic serial code assumes 16 * so return ipb freq / 2 */ return mpc52xx_find_ipb_freq (p) /2 ; -#else -pr_debug ("unexpected call to mpc52xx_getuartclk with arch/ppc\n" ); -return NULL ; -#endif }static struct psc_ops mpc52xx_psc_ops = {
@@ -886,10 +875,6 @@ mpc52xx_console_get_options(struct uart_port *port,/* CT{U,L}R are write-only ! */ *baud = CONFIG_SERIAL_MPC52xx_CONSOLE_BAUD; -#if !defined(CONFIG_PPC_MERGE ) -if (__res.bi_baudrate) - *baud = __res.bi_baudrate; -#endif /* Parse them */ switch (mr1 & MPC52xx_PSC_MODE_BITS_MASK) {
@@ -946,42 +931,6 @@ mpc52xx_console_write(struct console *co, const char *s, unsigned int count) psc_ops->cw_restore_ints (port); } -#if !defined(CONFIG_PPC_MERGE ) -static int __init -mpc52xx_console_setup (struct console *co,char *options) -{ -struct uart_port *port = &mpc52xx_uart_ports[co->index]; - -int baud = CONFIG_SERIAL_MPC52xx_CONSOLE_BAUD; -int bits =8 ; -int parity ='n' ; -int flow ='n' ; - -if (co->index <0 || co->index >= MPC52xx_PSC_MAXNUM) -return -EINVAL ; - -/* Basic port init. Needed since we use some uart_??? func before -* real init for early access */ -spin_lock_init (&port->lock); - port->uartclk = __res.bi_ipbfreq /2 ;/* Look at CTLR doc */ - port->ops = &mpc52xx_uart_ops; - port->mapbase =MPC52xx_PA (MPC52xx_PSCx_OFFSET (co->index+1 )); - -/* We ioremap ourself */ - port->membase =ioremap (port->mapbase, MPC52xx_PSC_SIZE); -if (port->membase ==NULL ) -return -EINVAL ; - -/* Setup the port parameters accoding to options */ -if (options) -uart_parse_options (options, &baud, &parity, &bits, &flow); -else -mpc52xx_console_get_options (port, &baud, &parity, &bits, &flow); - -return uart_set_options (port, co, baud, parity, bits, flow); -} - -#else static int __init mpc52xx_console_setup (struct console *co,char *options)
@@ -1053,7 +1002,6 @@ mpc52xx_console_setup(struct console *co, char *options)return uart_set_options (port, co, baud, parity, bits, flow); } -#endif /* defined(CONFIG_PPC_MERGE) */ static struct uart_driver mpc52xx_uart_driver;
@@ -1072,9 +1020,7 @@ static struct console mpc52xx_console = {static int __init mpc52xx_console_init (void ) { -#if defined(CONFIG_PPC_MERGE )mpc52xx_uart_of_enumerate (); -#endif register_console (&mpc52xx_console);return 0 ; }
@@ -1100,115 +1046,6 @@ static struct uart_driver mpc52xx_uart_driver = { .cons = MPC52xx_PSC_CONSOLE, }; - -#if !defined(CONFIG_PPC_MERGE ) -/* ======================================================================== */ -/* Platform Driver */ -/* ======================================================================== */ - -static int __devinit -mpc52xx_uart_probe (struct platform_device *dev) -{ -struct resource *res = dev->resource; - -struct uart_port *port =NULL ; -int i, idx, ret; - -/* Check validity & presence */ - idx = dev->id; -if (idx <0 || idx >= MPC52xx_PSC_MAXNUM) -return -EINVAL ; - -if (!mpc52xx_match_psc_function (idx,"uart" )) -return -ENODEV ; - -/* Init the port structure */ - port = &mpc52xx_uart_ports[idx]; - -spin_lock_init (&port->lock); - port->uartclk = __res.bi_ipbfreq /2 ;/* Look at CTLR doc */ - port->fifosize =512 ; - port->iotype =UPIO_MEM ; - port->flags =UPF_BOOT_AUTOCONF | - (uart_console (port) ?0 :UPF_IOREMAP ); - port->line = idx; - port->ops = &mpc52xx_uart_ops; - port->dev = &dev->dev; - -/* Search for IRQ and mapbase */ -for (i =0 ; i < dev->num_resources ; i++, res++) { -if (res->flags &IORESOURCE_MEM ) - port->mapbase = res->start; -else if (res->flags &IORESOURCE_IRQ ) - port->irq = res->start; - } -if (!port->irq || !port->mapbase) -return -EINVAL ; - -/* Add the port to the uart sub-system */ - ret =uart_add_one_port (&mpc52xx_uart_driver, port); -if (!ret) -platform_set_drvdata (dev, (void *)port); - -return ret; -} - -static int -mpc52xx_uart_remove (struct platform_device *dev) -{ -struct uart_port *port = (struct uart_port *)platform_get_drvdata (dev); - -platform_set_drvdata (dev,NULL ); - -if (port) -uart_remove_one_port (&mpc52xx_uart_driver, port); - -return 0 ; -} - -#ifdef CONFIG_PM -static int -mpc52xx_uart_suspend (struct platform_device *dev,pm_message_t state) -{ -struct uart_port *port = (struct uart_port *)platform_get_drvdata (dev); - -if (port) -uart_suspend_port (&mpc52xx_uart_driver, port); - -return 0 ; -} - -static int -mpc52xx_uart_resume (struct platform_device *dev) -{ -struct uart_port *port = (struct uart_port *)platform_get_drvdata (dev); - -if (port) -uart_resume_port (&mpc52xx_uart_driver, port); - -return 0 ; -} -#endif - -/* work with hotplug and coldplug */ -MODULE_ALIAS ("platform:mpc52xx-psc" ); - -static struct platform_driver mpc52xx_uart_platform_driver = { - .probe = mpc52xx_uart_probe, - .remove = mpc52xx_uart_remove, -#ifdef CONFIG_PM - .suspend = mpc52xx_uart_suspend, - .resume = mpc52xx_uart_resume, -#endif - .driver = { - .owner =THIS_MODULE , - .name ="mpc52xx-psc" , - }, -}; -#endif /* !defined(CONFIG_PPC_MERGE) */ - - -#if defined(CONFIG_PPC_MERGE )/* ======================================================================== */ /* OF Platform Driver */ /* ======================================================================== */
@@ -1402,7 +1239,6 @@ static struct of_platform_driver mpc52xx_uart_of_driver = { .name = "mpc52xx-psc-uart", }, }; -#endif /* defined(CONFIG_PPC_MERGE) */ /* ======================================================================== */
@@ -1423,7 +1259,6 @@ mpc52xx_uart_init(void)return ret; } -#if defined(CONFIG_PPC_MERGE )mpc52xx_uart_of_enumerate (); ret =of_register_platform_driver (&mpc52xx_uart_of_driver);
@@ -1433,16 +1268,6 @@ mpc52xx_uart_init(void)uart_unregister_driver (&mpc52xx_uart_driver);return ret; } -#else - psc_ops = &mpc52xx_psc_ops; - ret =platform_driver_register (&mpc52xx_uart_platform_driver); -if (ret) { -printk (KERN_ERR "%s: platform_driver_register failed (%i)\n" , - __FILE__, ret); -uart_unregister_driver (&mpc52xx_uart_driver); -return ret; - } -#endif return 0 ; }
@@ -1450,11 +1275,7 @@ mpc52xx_uart_init(void) static void __exitmpc52xx_uart_exit (void ) { -#if defined(CONFIG_PPC_MERGE )of_unregister_platform_driver (&mpc52xx_uart_of_driver); -#else -platform_driver_unregister (&mpc52xx_uart_platform_driver); -#endif uart_unregister_driver (&mpc52xx_uart_driver); }
Signature · 1 line
1.5.5.1
PATCH 6/9 mpc52xx_psc_spi: remove code associated with !CONFIG_PPC_MERGE
Now that arch/ppc is gone we don't need CONFIG_PPC_MERGE anymore remove the dead code associated with !CONFIG_PPC_MERGE.
--- drivers/spi/mpc52xx_psc_spi.c | 55 ----------------------------------------- 1 files changed, 0 insertions(+), 55 deletions(-)
drivers/spi/mpc52xx_psc_spi.c +0 -55
@@ -15,13 +15,7 @@#include <linux/init.h> #include <linux/errno.h> #include <linux/interrupt.h> - -#if defined(CONFIG_PPC_MERGE )#include <linux/of_platform.h> -#else -#include <linux/platform_device.h> -#endif -#include <linux/workqueue.h> #include <linux/completion.h> #include <linux/io.h>
@@ -471,53 +465,6 @@ static int __exit mpc52xx_psc_spi_do_remove(struct device *dev)return 0 ; } -#if !defined(CONFIG_PPC_MERGE ) -static int __init mpc52xx_psc_spi_probe (struct platform_device *dev) -{ -switch (dev->id) { -case 1 : -case 2 : -case 3 : -case 6 : -return mpc52xx_psc_spi_do_probe (&dev->dev, -MPC52xx_PA (MPC52xx_PSCx_OFFSET (dev->id)), - MPC52xx_PSC_SIZE,platform_get_irq (dev,0 ), dev->id); -default : -return -EINVAL ; - } -} - -static int __exit mpc52xx_psc_spi_remove(struct platform_device *dev) -{ -return mpc52xx_psc_spi_do_remove (&dev->dev); -} - -/* work with hotplug and coldplug */ -MODULE_ALIAS ("platform:mpc52xx-psc-spi" ); - -static struct platform_driver mpc52xx_psc_spi_platform_driver = { - .remove =__exit_p (mpc52xx_psc_spi_remove), - .driver = { - .name ="mpc52xx-psc-spi" , - .owner =THIS_MODULE , - }, -}; - -static int __init mpc52xx_psc_spi_init (void ) -{ -return platform_driver_probe (&mpc52xx_psc_spi_platform_driver, - mpc52xx_psc_spi_probe); -} -module_init (mpc52xx_psc_spi_init); - -static void __exit mpc52xx_psc_spi_exit(void) -{ -platform_driver_unregister (&mpc52xx_psc_spi_platform_driver); -} -module_exit (mpc52xx_psc_spi_exit); - -#else /* defined(CONFIG_PPC_MERGE) */ -static int __init mpc52xx_psc_spi_of_probe (struct of_device *op,const struct of_device_id *match) {
@@ -586,8 +533,6 @@ static void __exit mpc52xx_psc_spi_exit(void) }module_exit (mpc52xx_psc_spi_exit); -#endif /* defined(CONFIG_PPC_MERGE) */ -MODULE_AUTHOR ("Dragos Carp" );MODULE_DESCRIPTION ("MPC52xx PSC SPI Driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
1.5.5.1
PATCH 8/9 pata_sil680: convert CONFIG_PPC_MERGE to CONFIG_PPC
In reply to Kumar GalaNow that arch/ppc is dead CONFIG_PPC_MERGE is always defined for all powerpc platforms and we want to get rid of CONFIG_PPC_MERGE use CONFIG_PPC instead.
--- drivers/ata/pata_sil680.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ata/pata_sil680.c +1 -1
@@ -230,7 +230,7 @@ static u8 sil680_init_chip(struct pci_dev *pdev, int *try_mmio) tmpbyte & 1, tmpbyte & 0x30); *try_mmio =0 ; -#ifdef CONFIG_PPC_MERGE +#ifdef CONFIG_PPC if (machine_is (cell)) *try_mmio = (tmpbyte &1 ) ||pci_resource_start (pdev,5 );#endif
Signature · 1 line
1.5.5.1
cover powerpc: Remove use of CONFIG_PPC_MERGE
This set of patches remove Kconfig and code related to CONFIG_PPC_MERGE and !CONFIG_PPC_MERGE. There is some discussion about that one last use of !PPC_MERGE with respect to the 4xx MTD_NAND_NDFC driver.
Subsystem maintainers how do you want to handle this, via the powerpc tree of will you guys pick these up?
- k
PATCH 1/9 usb: remove code associated with !CONFIG_PPC_MERGE
Now that arch/ppc is gone we don't need CONFIG_PPC_MERGE anymore remove the dead code associated with !CONFIG_PPC_MERGE.
--- drivers/usb/host/ehci-hcd.c | 5 - drivers/usb/host/ehci-ppc-soc.c | 201 --------------------------------------- drivers/usb/host/ehci.h | 9 -- drivers/usb/host/ohci.h | 8 -- 4 files changed, 0 insertions(+), 223 deletions(-) delete mode 100644 drivers/usb/host/ehci-ppc-soc.c
drivers/usb/host/ehci-hcd.c +0 -5
@@ -1014,11 +1014,6 @@ MODULE_LICENSE ("GPL");#define PS3_SYSTEM_BUS_DRIVER ps3_ehci_driver#endif -#if defined(CONFIG_440EPX ) && !defined(CONFIG_PPC_MERGE ) -#include "ehci-ppc-soc.c" -#define PLATFORM_DRIVER ehci_ppc_soc_driver -#endif -#ifdef CONFIG_USB_EHCI_HCD_PPC_OF #include "ehci-ppc-of.c" #define OF_PLATFORM_DRIVER ehci_hcd_ppc_of_driver
drivers/usb/host/ehci-ppc-soc.c deleted +0 -201
201 lines not on this page · raw message
drivers/usb/host/ehci.h +0 -9
@@ -740,16 +740,7 @@ ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc)/* * Big-endian read/write functions are arch-specific. * Other arches can be added if/when they're needed. -* -* REVISIT: arch/powerpc now has readl/writel_be, so the -* definition below can die once the 4xx support is -* finally ported over. */ -#if defined(CONFIG_PPC ) && !defined(CONFIG_PPC_MERGE ) -#define readl_be (addr) in_be32((__force unsigned *)addr) -#define writel_be (val, addr) out_be32((__force unsigned *)addr, val) -#endif -#if defined(CONFIG_ARM ) && defined(CONFIG_ARCH_IXP4XX )#define readl_be (addr) __raw_readl((__force unsigned *)addr)#define writel_be (val, addr) __raw_writel(val, (__force unsigned *)addr)
drivers/usb/host/ohci.h +0 -8
@@ -540,15 +540,7 @@ static inline struct usb_hcd *ohci_to_hcd (const struct ohci_hcd *ohci)* Big-endian read/write functions are arch-specific. * Other arches can be added if/when they're needed. * -* REVISIT: arch/powerpc now has readl/writel_be, so the -* definition below can die once the STB04xxx support is -* finally ported over. */ -#if defined(CONFIG_PPC ) && !defined(CONFIG_PPC_MERGE ) -#define readl_be (addr) in_be32((__force unsigned *)addr) -#define writel_be (val, addr) out_be32((__force unsigned *)addr, val) -#endif -static inline unsigned int _ohci_readl (const struct ohci_hcd *ohci,__hc32 __iomem * regs) {
Signature · 1 line
1.5.5.1
PATCH 4/9 rtc: use CONFIG_PPC instead of CONFIG_PPC_MERGE
In reply to Kumar GalaNow that arch/ppc is dead CONFIG_PPC_MERGE is always defined for all powerpc platforms and we want to get rid of it use CONFIG_PPC instead.
--- drivers/rtc/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/Kconfig +1 -1
@@ -577,7 +577,7 @@ config RTC_DRV_RS5C313 config RTC_DRV_PPC tristate "PowerPC machine dependent RTC support" - depends on PPC_MERGE + depends on PPC help The PowerPC kernel has machine-specific functions for accessing the RTC. This exposes that functionality through the generic RTC
Signature · 1 line
1.5.5.1
PATCH 7/9 powerpc: convert CONFIG_PPC_MERGE to CONFIG_PPC for legacy io checks
In reply to Kumar GalaNow that arch/ppc is dead CONFIG_PPC_MERGE is always defined for all powerpc platforms and we want to get rid of CONFIG_PPC_MERGE use CONFIG_PPC instead.
--- drivers/block/floppy.c | 2 +- drivers/char/ipmi/ipmi_si_intf.c | 2 +- drivers/i2c/busses/i2c-pca-isa.c | 2 +- drivers/input/serio/i8042-io.h | 2 +- drivers/pnp/isapnp/core.c | 2 +- drivers/pnp/pnpbios/core.c | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-)
drivers/block/floppy.c +1 -1
@@ -4165,7 +4165,7 @@ static int __init floppy_init(void)int i, unit, drive;int err, dr; -#if defined(CONFIG_PPC_MERGE ) +#if defined(CONFIG_PPC )if (check_legacy_ioport (FDC1 ))return -ENODEV ;#endif
drivers/char/ipmi/ipmi_si_intf.c +1 -1
@@ -2695,7 +2695,7 @@ static __devinit void default_find_bmc(void)for (i =0 ; ; i++) {if (!ipmi_defaults[i].port)break ; -#ifdef CONFIG_PPC_MERGE +#ifdef CONFIG_PPC if (check_legacy_ioport (ipmi_defaults[i].port))continue ;#endif
drivers/i2c/busses/i2c-pca-isa.c +1 -1
@@ -113,7 +113,7 @@ static int __devinit pca_isa_probe(struct device *dev, unsigned int id)dev_info (dev,"i/o base %#08lx. irq %d\n" , base, irq); -#ifdef CONFIG_PPC_MERGE +#ifdef CONFIG_PPC if (check_legacy_ioport (base)) {dev_err (dev,"I/O address %#08lx is not available\n" , base); goto out;
drivers/input/serio/i8042-io.h +1 -1
@@ -67,7 +67,7 @@ static inline int i8042_platform_init(void)* On some platforms touching the i8042 data register region can do really * bad things. Because of this the region is always reserved on such boxes. */ -#if defined(CONFIG_PPC_MERGE ) +#if defined(CONFIG_PPC )if (check_legacy_ioport (I8042_DATA_REG ))return -ENODEV ;#endif
drivers/pnp/isapnp/core.c +1 -1
@@ -1012,7 +1012,7 @@ static int __init isapnp_init(void)printk (KERN_INFO "isapnp: ISA Plug & Play support disabled\n" );return 0 ; } -#ifdef CONFIG_PPC_MERGE +#ifdef CONFIG_PPC if (check_legacy_ioport (_PIDXR) ||check_legacy_ioport (_PNPWRP))return -EINVAL ;#endif
drivers/pnp/pnpbios/core.c +2 -2
@@ -519,7 +519,7 @@ static int __init pnpbios_init(void) {int ret; -#if defined(CONFIG_PPC_MERGE ) +#if defined(CONFIG_PPC )if (check_legacy_ioport (PNPBIOS_BASE ))return -ENODEV ;#endif
@@ -577,7 +577,7 @@ static int __init pnpbios_thread_init(void) {struct task_struct *task; -#if defined(CONFIG_PPC_MERGE ) +#if defined(CONFIG_PPC )if (check_legacy_ioport (PNPBIOS_BASE ))return 0 ;#endif
Signature · 1 line
1.5.5.1
PATCH 9/9 mtd: remove code associated with !CONFIG_PPC_MERGE
In reply to Kumar GalaNow that arch/ppc is gone we don't need CONFIG_PPC_MERGE anymore remove the dead code associated with !CONFIG_PPC_MERGE.
The mtd maps should be using the OF based mechanism.
--- drivers/mtd/maps/Kconfig | 24 ------- drivers/mtd/maps/Makefile | 3 - drivers/mtd/maps/ebony.c | 163 --------------------------------------------- drivers/mtd/maps/ocotea.c | 154 ------------------------------------------ drivers/mtd/maps/walnut.c | 122 --------------------------------- 5 files changed, 0 insertions(+), 466 deletions(-) delete mode 100644 drivers/mtd/maps/ebony.c delete mode 100644 drivers/mtd/maps/ocotea.c delete mode 100644 drivers/mtd/maps/walnut.c
drivers/mtd/maps/Kconfig +0 -24
@@ -332,30 +332,6 @@ config MTD_CFI_FLAGADM Mapping for the Flaga digital module. If you don't have one, ignore this setting. -config MTD_WALNUT - tristate "Flash device mapped on IBM 405GP Walnut" - depends on MTD_JEDECPROBE && WALNUT && !PPC_MERGE - help - This enables access routines for the flash chips on the IBM 405GP - Walnut board. If you have one of these boards and would like to - use the flash chips on it, say 'Y'. - -config MTD_EBONY - tristate "Flash devices mapped on IBM 440GP Ebony" - depends on MTD_JEDECPROBE && EBONY && !PPC_MERGE - help - This enables access routines for the flash chips on the IBM 440GP - 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 )
drivers/mtd/maps/Makefile +0 -3
@@ -50,9 +50,6 @@ 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
drivers/mtd/maps/ebony.c deleted +0 -163
163 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/walnut.c deleted +0 -122
122 lines not on this page · raw message
Signature · 1 line
1.5.5.1
Re: [PATCH 6/9] mpc52xx_psc_spi: remove code associated with !CONFIG_PPC_MERGE
In reply to Kumar GalaQuoted 8 lines · Kumar Gala
Now that
arch/ppcis gone we don't needCONFIG_PPC_MERGEanymore remove the dead code associated with !CONFIG_PPC_MERGE.Signed-off-by Kumar Gala <[email protected]>---
drivers/spi/mpc52xx_psc_spi.c| 55
-----------------------------------------1 files changed, 0 insertions(+), 55 deletions(-)
Any update on acceptance of this patch?
- k
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Re: [PATCH 6/9] mpc52xx_psc_spi: remove code associated with !CONFIG_PPC_MERGE
Quoted 6 lines · Kumar Gala
Quoted 3 lines · Kumar Gala
Now that
arch/ppcis gone we don't needCONFIG_PPC_MERGEanymore remove the dead code associated with !CONFIG_PPC_MERGE.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Kumar Gala <[email protected]>---
drivers/spi/mpc52xx_psc_spi.c| 55
-----------------------------------------1 files changed, 0 insertions(+), 55 deletions(-)Any update on acceptance of this patch?
Still seems to be in the MM queue ready to merge
a bit later in the window.
- Dave