From patchwork Thu Jul 5 13:06:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1160871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 781523FE4F for ; Thu, 5 Jul 2012 13:52:52 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SmmQU-0001fq-Vm; Thu, 05 Jul 2012 13:48:59 +0000 Received: from mail-wg0-f41.google.com ([74.125.82.41]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Smllj-0008Iv-Dt for linux-arm-kernel@lists.infradead.org; Thu, 05 Jul 2012 13:07:09 +0000 Received: by wgbds1 with SMTP id ds1so57262wgb.0 for ; Thu, 05 Jul 2012 06:06:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=A5UNjERZey0FgwTXruiN8p47vCsrGPv3byGfNnmGVBQ=; b=PCrZ6V1rTH8xIfBzmwtQx2TjqsF4dETDqxOvlGzWFLM55bxFJP8/h4PoWUNdrLy7oV VyRMnYzJjAsKi9kHV0nTghlcTgXqGmObeZAw6fnkbFsb0+Kj0q0V9CcjONYbU31/zgID ZcsLUfRAU5F7XhT6ld1rCL5+r5AnnHoR9CkPA3ZPS7L1k9HlvqOdi5/9sR9S0qWiwb2K ALTUQVP+xagUfXNsyvBh6vQQKpTu7czrbPrOV/Dco4hNivcl5PTbT4MBzVjZJ2n9ar69 thcX1JyfsybvLLdHDEtWubQnhcTaZu0/J1qyEmsMjd2PozwpgykYK4RLwSE9Yk+zu+Iu r8ig== Received: by 10.217.7.69 with SMTP id z47mr339074wes.213.1341493604406; Thu, 05 Jul 2012 06:06:44 -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 k8sm76767305wia.6.2012.07.05.06.06.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 06:06:43 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/9] ARM: ux500: Remove PMU platform registration when booting with DT Date: Thu, 5 Jul 2012 14:06:09 +0100 Message-Id: <1341493572-29735-7-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1341493572-29735-1-git-send-email-lee.jones@linaro.org> References: <1341493572-29735-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlviln3m8YGvl2RMpiH6IbAb2mNivmiH1srhLiD7Azdutt/RwPfEWvMUXJlHB9ntBYwLcOx X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.41 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: STEricsson_nomadik_linux@list.st.com, Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de 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 PMU registration is successfully completed by Device Tree now, so there is no longer a requirement to register it from platform code. This patch removes platform registration during a DT boot. Signed-off-by: Lee Jones Acked-by: Linus Walleij --- arch/arm/mach-ux500/cpu-db8500.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index a12bd9e..c8dd94f 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c @@ -139,7 +139,6 @@ static struct platform_device *platform_devs[] __initdata = { static struct platform_device *of_platform_devs[] __initdata = { &u8500_dma40_device, - &db8500_pmu_device, }; static resource_size_t __initdata db8500_gpio_base[] = { @@ -248,7 +247,7 @@ struct device * __init u8500_of_init_devices(void) /* * Devices to be DT:ed: * u8500_dma40_device = todo - * db8500_pmu_device = todo + * db8500_pmu_device = done * db8500_prcmu_device = done */ platform_add_devices(of_platform_devs, ARRAY_SIZE(of_platform_devs));