From patchwork Tue Aug 7 14:34:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Molton X-Patchwork-Id: 1286031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id C9B95DF280 for ; Tue, 7 Aug 2012 14:40:01 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Syktg-0006tF-UT; Tue, 07 Aug 2012 14:36:37 +0000 Received: from ducie-dc1.codethink.co.uk ([37.128.190.40]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SyksK-0006Fd-1S for linux-arm-kernel@lists.infradead.org; Tue, 07 Aug 2012 14:35:18 +0000 Received: from snark.dyn.ducie.codethink.co.uk (snark.dyn.ducie.codethink.co.uk [192.168.24.147]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTPA id 5C58E460C31; Tue, 7 Aug 2012 15:35:08 +0100 (BST) From: Ian Molton To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 7/7] NET: mv643xx: remove device name macro. Date: Tue, 7 Aug 2012 15:34:52 +0100 Message-Id: <1344350092-24050-8-git-send-email-ian.molton@codethink.co.uk> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1344350092-24050-1-git-send-email-ian.molton@codethink.co.uk> References: <1344350092-24050-1-git-send-email-ian.molton@codethink.co.uk> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: thomas.petazzoni@free-electrons.com, andrew@lunn.ch, ben.dooks@codethink.co.uk, arnd@arndb.de, netdev@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Coding style: remove the macros: MV643XX_ETH_NAME and MV643XX_ETH_SHARED_NAME Signed-off-by: Ian Molton --- arch/arm/mach-kirkwood/board-dt.c | 4 ++-- arch/arm/mach-kirkwood/common.c | 4 ++-- arch/arm/plat-orion/common.c | 24 ++++++++++++------------ arch/powerpc/platforms/chrp/pegasos_eth.c | 4 ++-- arch/powerpc/sysdev/mv64x60_dev.c | 5 ++--- drivers/net/ethernet/marvell/mv643xx_eth.c | 8 ++++---- include/linux/mv643xx_eth.h | 2 -- 7 files changed, 24 insertions(+), 27 deletions(-) diff --git a/arch/arm/mach-kirkwood/board-dt.c b/arch/arm/mach-kirkwood/board-dt.c index aa213b6..91784d9 100644 --- a/arch/arm/mach-kirkwood/board-dt.c +++ b/arch/arm/mach-kirkwood/board-dt.c @@ -34,9 +34,9 @@ struct of_dev_auxdata kirkwood_auxdata_lookup[] __initdata = { OF_DEV_AUXDATA("marvell,orion-wdt", 0xf1020300, "orion_wdt", NULL), OF_DEV_AUXDATA("marvell,orion-sata", 0xf1080000, "sata_mv.0", NULL), OF_DEV_AUXDATA("marvell,orion-nand", 0xf4000000, "orion_nand", NULL), - OF_DEV_AUXDATA("marvell,mv643xx", 0xf1072000, "mv643xx_eth_port.0", + OF_DEV_AUXDATA("marvell,mv643xx", 0xf1072000, "mv643xx_eth.0", NULL), - OF_DEV_AUXDATA("marvell,mv643xx", 0xf1076000, "mv643xx_eth_port.1", + OF_DEV_AUXDATA("marvell,mv643xx", 0xf1076000, "mv643xx_eth.1", NULL), {}, }; diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 57b91cf..eb0a253 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c @@ -264,8 +264,8 @@ void __init kirkwood_clk_init(void) /* clkdev entries, mapping clks to devices */ orion_clkdev_add(NULL, "orion_spi.0", runit); orion_clkdev_add(NULL, "orion_spi.1", runit); - orion_clkdev_add(NULL, MV643XX_ETH_NAME ".0", ge0); - orion_clkdev_add(NULL, MV643XX_ETH_NAME ".1", ge1); + orion_clkdev_add(NULL, "mv643xx_eth.0", ge0); + orion_clkdev_add(NULL, "mv643xx_eth.1", ge1); orion_clkdev_add(NULL, "orion_wdt", tclk); orion_clkdev_add("0", "sata_mv.0", sata0); orion_clkdev_add("1", "sata_mv.0", sata1); diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index d245a87..d4a6467 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -42,10 +42,10 @@ void __init orion_clkdev_init(struct clk *tclk) { orion_clkdev_add(NULL, "orion_spi.0", tclk); orion_clkdev_add(NULL, "orion_spi.1", tclk); - orion_clkdev_add(NULL, MV643XX_ETH_NAME ".0", tclk); - orion_clkdev_add(NULL, MV643XX_ETH_NAME ".1", tclk); - orion_clkdev_add(NULL, MV643XX_ETH_NAME ".2", tclk); - orion_clkdev_add(NULL, MV643XX_ETH_NAME ".3", tclk); + orion_clkdev_add(NULL, "mv643xx_eth.0", tclk); + orion_clkdev_add(NULL, "mv643xx_eth.1", tclk); + orion_clkdev_add(NULL, "mv643xx_eth.2", tclk); + orion_clkdev_add(NULL, "mv643xx_eth.3", tclk); orion_clkdev_add(NULL, "orion_wdt", tclk); orion_clkdev_add(NULL, MV64XXX_I2C_CTLR_NAME ".0", tclk); } @@ -264,7 +264,7 @@ static struct resource orion_ge00_shared_resources[] = { }; static struct platform_device orion_ge00_shared = { - .name = MV643XX_ETH_SHARED_NAME, + .name = "mdio-mv643xx", .id = 0, .dev = { .platform_data = &orion_ge00_shared_data, @@ -279,7 +279,7 @@ static struct resource orion_ge00_resources[] = { }; static struct platform_device orion_ge00 = { - .name = MV643XX_ETH_NAME, + .name = "mv643xx_eth", .id = 0, .num_resources = 1, .resource = orion_ge00_resources, @@ -316,7 +316,7 @@ static struct resource orion_ge01_shared_resources[] = { }; static struct platform_device orion_ge01_shared = { - .name = MV643XX_ETH_SHARED_NAME, + .name = "mdio-mv643xx", .id = 1, .dev = { .platform_data = &orion_ge01_shared_data, @@ -331,7 +331,7 @@ static struct resource orion_ge01_resources[] = { }; static struct platform_device orion_ge01 = { - .name = MV643XX_ETH_NAME, + .name = "mv643xx_eth", .id = 1, .num_resources = 1, .resource = orion_ge01_resources, @@ -368,7 +368,7 @@ static struct resource orion_ge10_shared_resources[] = { }; static struct platform_device orion_ge10_shared = { - .name = MV643XX_ETH_SHARED_NAME, + .name = "mdio-mv643xx", .id = 1, .dev = { .platform_data = &orion_ge10_shared_data, @@ -383,7 +383,7 @@ static struct resource orion_ge10_resources[] = { }; static struct platform_device orion_ge10 = { - .name = MV643XX_ETH_NAME, + .name = "mv643xx_eth", .id = 1, .num_resources = 2, .resource = orion_ge10_resources, @@ -420,7 +420,7 @@ static struct resource orion_ge11_shared_resources[] = { }; static struct platform_device orion_ge11_shared = { - .name = MV643XX_ETH_SHARED_NAME, + .name = "mdio-mv643xx", .id = 1, .dev = { .platform_data = &orion_ge11_shared_data, @@ -435,7 +435,7 @@ static struct resource orion_ge11_resources[] = { }; static struct platform_device orion_ge11 = { - .name = MV643XX_ETH_NAME, + .name = "mv643xx_eth", .id = 1, .num_resources = 2, .resource = orion_ge11_resources, diff --git a/arch/powerpc/platforms/chrp/pegasos_eth.c b/arch/powerpc/platforms/chrp/pegasos_eth.c index 039fc8e..1832127 100644 --- a/arch/powerpc/platforms/chrp/pegasos_eth.c +++ b/arch/powerpc/platforms/chrp/pegasos_eth.c @@ -41,7 +41,7 @@ static struct resource mv643xx_eth_shared_resources[] = { }; static struct platform_device mv643xx_eth_shared_device = { - .name = MV643XX_ETH_SHARED_NAME, + .name = "mdio-mv643xx", .id = 0, .num_resources = ARRAY_SIZE(mv643xx_eth_shared_resources), .resource = mv643xx_eth_shared_resources, @@ -71,7 +71,7 @@ static struct mv643xx_eth_platform_data eth_port1_pd = { }; static struct platform_device eth_port1_device = { - .name = MV643XX_ETH_NAME, + .name = "mv643xx_eth", .id = 1, .num_resources = ARRAY_SIZE(mv643xx_eth_port1_resources), .resource = mv643xx_eth_port1_resources, diff --git a/arch/powerpc/sysdev/mv64x60_dev.c b/arch/powerpc/sysdev/mv64x60_dev.c index 0f6af41..ca404ec 100644 --- a/arch/powerpc/sysdev/mv64x60_dev.c +++ b/arch/powerpc/sysdev/mv64x60_dev.c @@ -221,8 +221,7 @@ static struct platform_device * __init mv64x60_eth_register_shared_pdev( if (err) return ERR_PTR(err); - pdev = platform_device_register_simple(MV643XX_ETH_SHARED_NAME, id, - r, 1); + pdev = platform_device_register_simple("mdio-mv643xx", id, i r, 1); return pdev; } @@ -296,7 +295,7 @@ static int __init mv64x60_eth_device_setup(struct device_node *np, int id, of_node_put(phy); - pdev = platform_device_alloc(MV643XX_ETH_NAME, id); + pdev = platform_device_alloc("mv643xx_eth", id); if (!pdev) return -ENOMEM; diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index bb80050..9371601 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c @@ -2746,7 +2746,7 @@ static struct platform_driver mv643xx_eth_shared_driver = { .probe = mv643xx_eth_shared_probe, .remove = mv643xx_eth_shared_remove, .driver = { - .name = MV643XX_ETH_SHARED_NAME, + .name = "mdio-mv643xx", .owner = THIS_MODULE, .of_match_table = of_match_ptr(mv_mdio_dt_ids), }, @@ -3113,7 +3113,7 @@ static struct platform_driver mv643xx_eth_driver = { .remove = mv643xx_eth_remove, .shutdown = mv643xx_eth_shutdown, .driver = { - .name = MV643XX_ETH_NAME, + .name = "mv643xx_eth", .owner = THIS_MODULE, .of_match_table = of_match_ptr(mv_eth_dt_ids), }, @@ -3145,5 +3145,5 @@ MODULE_AUTHOR("Rabeeh Khoury, Assaf Hoffman, Matthew Dharm, " "Manish Lachwani, Dale Farnsworth and Lennert Buytenhek"); MODULE_DESCRIPTION("Ethernet driver for Marvell MV643XX"); MODULE_LICENSE("GPL"); -MODULE_ALIAS("platform:" MV643XX_ETH_SHARED_NAME); -MODULE_ALIAS("platform:" MV643XX_ETH_NAME); +MODULE_ALIAS("platform:" "mdio-mv643xx"); +MODULE_ALIAS("platform:" "mv643xx_eth"); diff --git a/include/linux/mv643xx_eth.h b/include/linux/mv643xx_eth.h index 51bf8ad..33dc6f4 100644 --- a/include/linux/mv643xx_eth.h +++ b/include/linux/mv643xx_eth.h @@ -7,8 +7,6 @@ #include -#define MV643XX_ETH_SHARED_NAME "mv643xx_eth" -#define MV643XX_ETH_NAME "mv643xx_eth_port" #define MV643XX_ETH_SHARED_REGS 0x2000 #define MV643XX_ETH_SHARED_REGS_SIZE 0x2000 #define MV643XX_ETH_BAR_4 0x2220