From patchwork Mon Jul 9 18:50:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1174521 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 51BCCDF235 for ; Mon, 9 Jul 2012 18:54:56 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SoJ3I-00074C-OZ; Mon, 09 Jul 2012 18:51:20 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SoJ2u-00073y-Pg for linux-arm-kernel@lists.infradead.org; Mon, 09 Jul 2012 18:51:16 +0000 Received: by lbbgg6 with SMTP id gg6so17321513lbb.36 for ; Mon, 09 Jul 2012 11:50:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=43rQ6xiyQe+xqZIkQScZ+O8mKhH+6jeG0bqZ5kvJatc=; b=QEcBmWONfClVwBueniwyd75EcXQ59gi9oH8k1J2R1qRYU+C0xA7VLgyfHuDcO+S6IT qIVi6Ev5JKJ8pA6RabIz8lm5PGNY30/GbmpgrvO5pmLtXKDO9QKU9sNdnnm4XLDjejCA BeFw4fpsRmeE/4rm2B5cDp9zpuX9fDbEwPim90sTn6aKQk4xAtqZ8wo9hYEM1dj1KN7H c/wGVUgp8iVC2YKOxzhn2qTTtRL9vkpA8F6nmDm/k1s29xr5CMqHXXypjc8YgZuLCHFa 7KtKMfCeGfaYfRMydvdyQ3soGbYlDqCRO+HkhdqmcaMKywlxAnDT6/hkUYRnhtWxYGA6 2vLA== Received: by 10.112.99.71 with SMTP id eo7mr19349334lbb.84.1341859852099; Mon, 09 Jul 2012 11:50:52 -0700 (PDT) Received: from [10.59.1.244] ([213.88.140.213]) by mx.google.com with ESMTPS id d3sm16786678lbh.3.2012.07.09.11.50.50 (version=SSLv3 cipher=OTHER); Mon, 09 Jul 2012 11:50:51 -0700 (PDT) Message-ID: <4FFB2809.3020005@linaro.org> Date: Mon, 09 Jul 2012 20:50:49 +0200 From: Lee Jones User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Linus Walleij Subject: Re: [PATCH 8/9] ARM: ux500: Clean-up temporary Device Tree enablement helpers References: <1341493572-29735-1-git-send-email-lee.jones@linaro.org> <1341493572-29735-9-git-send-email-lee.jones@linaro.org> <4FF6A2DF.5030407@linaro.org> In-Reply-To: X-Gm-Message-State: ALoCoQkThKdZXltmPYo4fxVobGZqEG/YC8HfV5WPJtdhyfngZDWcSY5SCco1TcuiczGoRZ4RU9/m 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 [209.85.217.177 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, linux-arm-kernel@lists.infradead.org, linus.walleij@stericsson.com, arnd@arndb.de, linux-kernel@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: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Better? From 9ef8a52c00dedbd63b6eecc086f8bd688d2cb66a Mon Sep 17 00:00:00 2001 From: Lee Jones Date: Wed, 27 Jun 2012 08:42:08 +0100 Subject: [PATCH 1/1] ARM: ux500: Clean-up temporary Device Tree enablement helpers Here we remove some of the extra overhead we introduced to make DT:ing the Snowball platform easier. Signed-off-by: Lee Jones Acked-by: Linus Walleij --- arch/arm/mach-ux500/cpu-db8500.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index db3c52d..38b7f9c 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c @@ -138,10 +138,6 @@ static struct platform_device *platform_devs[] __initdata = { &db8500_prcmu_device, }; -static struct platform_device *of_platform_devs[] __initdata = { - &u8500_dma40_device, -}; - static resource_size_t __initdata db8500_gpio_base[] = { U8500_GPIOBANK0_BASE, U8500_GPIOBANK1_BASE, @@ -235,7 +231,6 @@ struct device * __init u8500_init_devices(struct ab8500_platform_data *ab8500) struct device * __init u8500_of_init_devices(void) { struct device *parent; - int i; parent = db8500_soc_device_init(); @@ -244,8 +239,7 @@ struct device * __init u8500_of_init_devices(void) platform_device_register_data(parent, "cpufreq-u8500", -1, NULL, 0); - for (i = 0; i < ARRAY_SIZE(of_platform_devs); i++) - of_platform_devs[i]->dev.parent = parent; + u8500_dma40_device.dev.parent = parent; /* * Devices to be DT:ed: @@ -253,7 +247,7 @@ struct device * __init u8500_of_init_devices(void) * db8500_pmu_device = done * db8500_prcmu_device = done */ - platform_add_devices(of_platform_devs, ARRAY_SIZE(of_platform_devs)); + platform_device_register(&u8500_dma40_device); return parent; }