From patchwork Mon Oct 1 10:43:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11888 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E61F323E57 for ; Mon, 1 Oct 2012 10:44:15 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 98AE2A189C8 for ; Mon, 1 Oct 2012 10:44:15 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so11252295iej.11 for ; Mon, 01 Oct 2012 03:44:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=/r1bN66K3GL6mgGpHjJwWv13DzgD3LW9GLptsvxFm7g=; b=SpMthTHAfec1hdhm4a5QOslGd4MzjeuZ5eoKX3H9auLt5PNOMV5GVRoBH7jc7fTQlz FyIXIAQa+a7X5VspfZ8CEwlCYYMvDTOW0asAmGz5RdzqO7BbBm84qa7Td/g62vhWX6EX tbA1MjFnFoCAHMk1ypVxhOMyv1wXDO/EaZiG1a9PiShxlHsq+6h34lr67HVv/mIEs4oH TpxbJO+Vw4pGXeIm50MZ6f25ju9ikJpV52uNEPfYdkBEOd0J3YouPjjSAHLyyvi9/vLq vulYA+R5TdcuN8uHDwfIZ27qy7pKh0OEu86licbe21xXTsXRkW18VNKcoATQPiHBLJ/c C2vA== Received: by 10.42.109.194 with SMTP id m2mr10789798icp.48.1349088255309; Mon, 01 Oct 2012 03:44:15 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp17907igc; Mon, 1 Oct 2012 03:44:14 -0700 (PDT) Received: by 10.216.195.9 with SMTP id o9mr3430406wen.197.1349088253694; Mon, 01 Oct 2012 03:44:13 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id t69si6954998weo.109.2012.10.01.03.44.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Oct 2012 03:44:13 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-we0-f178.google.com with SMTP id r6so3294620wey.37 for ; Mon, 01 Oct 2012 03:44:13 -0700 (PDT) Received: by 10.180.99.99 with SMTP id ep3mr13708651wib.15.1349088253230; Mon, 01 Oct 2012 03:44:13 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id v3sm15856944wiw.7.2012.10.01.03.44.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Oct 2012 03:44:12 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones Subject: [PATCH 7/7] ARM: ux500: Remove platform specific device registration when DT is enabled Date: Mon, 1 Oct 2012 11:43:48 +0100 Message-Id: <1349088228-8582-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1349088228-8582-1-git-send-email-lee.jones@linaro.org> References: <1349088228-8582-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQl1sIv8zfl0mlQ8sMwtEQIBqmScyf0M6LV6+8ro1PlCS1/b5UJoOK2hko6hW00NA2BjIOJc Most devices have now been successfully DT:ed and each supported platform has its own Device Tree source file. Hence the majority of the platform specific device registration calls can now be successfully removed. Acked-by: Linus Walleij Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 38e53b2..5dd4a59 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -793,8 +793,6 @@ static const struct of_device_id u8500_local_bus_nodes[] = { static void __init u8500_init_machine(void) { struct device *parent = NULL; - int i2c0_devs; - int i; /* Pinmaps must be in place before devices register */ if (of_machine_is_compatible("st-ericsson,mop500")) @@ -804,37 +802,12 @@ static void __init u8500_init_machine(void) else if (of_machine_is_compatible("st-ericsson,hrefv60+")) hrefv60_pinmaps_init(); + /* TODO: Export SoC, USB, cpu-freq and DMA40 */ parent = u8500_of_init_devices(); - for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++) - mop500_platform_devs[i]->dev.parent = parent; - /* automatically probe child nodes of db8500 device */ of_platform_populate(NULL, u8500_local_bus_nodes, u8500_auxdata_lookup, parent); - if (of_machine_is_compatible("st-ericsson,mop500")) { - mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR; - - platform_add_devices(mop500_platform_devs, - ARRAY_SIZE(mop500_platform_devs)); - - mop500_audio_init(parent); - i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); - i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); - i2c_register_board_info(2, mop500_i2c2_devices, - ARRAY_SIZE(mop500_i2c2_devices)); - - } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) { - /* - * The HREFv60 board removed a GPIO expander and routed - * all these GPIO pins to the internal GPIO controller - * instead. - */ - mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO; - platform_add_devices(mop500_platform_devs, - ARRAY_SIZE(mop500_platform_devs)); - } - /* This board has full regulator constraints */ regulator_has_full_constraints(); }