From patchwork Fri Sep 7 11:14:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11246 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 7926023F25 for ; Fri, 7 Sep 2012 11:15:37 +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 DED3DA18DBC for ; Fri, 7 Sep 2012 11:15:35 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id k11so4488374iea.11 for ; Fri, 07 Sep 2012 04:15:35 -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=UOp40F21MsuOoYKECMymhHYXzSZEaiIoC1tWWR1bz7Q=; b=o6j0FxxcSTTb+puW4Vb/NKYiy5eRIJtFiWE5G9OdgfcLD6PTjxXqAy37zX9IHZr5X8 Z3wzYD0Dj3AC0c1ic2WyTP/DWH9jM+aQ+WvQpRVY9YsbqWNZepjnv3l8Hp2GgYQYrXS3 2TI1SrTDFJto0JrxEPQeBs49EmRaXHMpERLYu8JtNVgYJcAFTr8ofTYZKaA3COTLhEVH uRLkeWRH20TzNVs452gi1VEZcc4+mBWq8bo6OHpGQRpybLDafzecxUUb1zWkypxZO1P8 Sq58r/AebsfdYMFJGLIeFFHsruvGS5mV1/QsDiee5OO+yhAvbD2ppkNFyJhB/8W2GK8h M9kw== Received: by 10.50.7.212 with SMTP id l20mr7960832iga.43.1347016535682; Fri, 07 Sep 2012 04:15:35 -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 ex8csp373456igc; Fri, 7 Sep 2012 04:15:34 -0700 (PDT) Received: by 10.216.235.197 with SMTP id u47mr3011120weq.180.1347016534440; Fri, 07 Sep 2012 04:15:34 -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 cl2si12116130wib.32.2012.09.07.04.15.34 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Sep 2012 04:15:34 -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 u7so2048595wey.37 for ; Fri, 07 Sep 2012 04:15:34 -0700 (PDT) Received: by 10.180.96.3 with SMTP id do3mr11576256wib.5.1347016533868; Fri, 07 Sep 2012 04:15:33 -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 k20sm9151505wiv.11.2012.09.07.04.15.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Sep 2012 04:15:33 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: STEricsson_nomadik_linux@list.st.com, linus.walleij@stericsson.com, arnd@arndb.de, Lee Jones Subject: [PATCH 13/19] ARM: ux500: Stop registering I2C sub-devices for HREF when DT is enabled Date: Fri, 7 Sep 2012 12:14:53 +0100 Message-Id: <1347016499-29354-14-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1347016499-29354-1-git-send-email-lee.jones@linaro.org> References: <1347016499-29354-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQmxKt8Q6T8W3ze3C6q1z1EYDq4kRF3fyqpxNxbLUC16ZAy5tXsBLeBcQKV1BJN2qSnImrqQ Here we remove all calls to register I2C sub-devices from platform code when Device Tree is enabled. Instead the I2C driver will parse the Device Tree for them. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 0219c276..181ed25 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -840,13 +840,6 @@ static void __init u8500_init_machine(void) platform_add_devices(mop500_platform_devs, ARRAY_SIZE(mop500_platform_devs)); - i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); - i2c0_devs -= NUM_PRE_V60_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)); - mop500_uib_init(); }