From patchwork Mon Jul 1 05:42:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2805421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 825F8BF4A1 for ; Mon, 1 Jul 2013 05:46:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A11C9200F2 for ; Mon, 1 Jul 2013 05:46:29 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6F1C02010C for ; Mon, 1 Jul 2013 05:46:28 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtWtF-0002lx-IL; Mon, 01 Jul 2013 05:43:08 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtWsa-00089M-IK; Mon, 01 Jul 2013 05:42:24 +0000 Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtWsY-00087c-UH for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2013 05:42:23 +0000 Received: by mail-pd0-f180.google.com with SMTP id 10so2297066pdi.39 for ; Sun, 30 Jun 2013 22:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=1qJQQndH8lMI7PUIwal/3btG/XMlwenNyWWIentTK6M=; b=ZdQeBK4RAkHwlsLpW913+kd+mzCWiF/6VehNdq5rHKBzBvE8AHJEfXrzUoYiLnQNsV a3FLu0lqc0jR+HKNSvg9tx3N1RdHdRsMB7BxTw0zg0uECQwgIvrnuVcSCdJMpTLle2nf HEqcVRx0rVUorWTg5/w7v/CpAbS8qP+Hf23L0fby3HnQUOr3ZoSO4lit8IIafWeqZA4E /PGLIDYQ/PyxIbqKVMmKHGJcq63Rrt9LTYn/iid/7B7fOMEl+UhwCQAoUvScUWLbQq7l 4FqxUbT/NEkaA29KGL41blhx09KlO0esptJ/O0AY/efndqxXZbjm6UJiZ145Md/Gq5xV d30g== X-Received: by 10.68.234.72 with SMTP id uc8mr14175311pbc.35.1372657321431; Sun, 30 Jun 2013 22:42:01 -0700 (PDT) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id kq2sm21978719pab.19.2013.06.30.22.41.58 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Jun 2013 22:42:00 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Mon, 01 Jul 2013 14:42:04 +0900 Message-Id: <20130701054204.19319.68354.sendpatchset@w520> In-Reply-To: <20130701054106.19319.46845.sendpatchset@w520> References: <20130701054106.19319.46845.sendpatchset@w520> Subject: [PATCH 06/07] ARM: shmobile: Remove unused sh73a0 auxdata table X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130701_014223_052999_7C24EB3E X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: olof@lixom.net, horms@verge.net.au, Magnus Damm , linux-arm-kernel@lists.infradead.org, arnd@arndb.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Pass NULL to of_platform_populate instead of passing an empty list. This cleans up the code and reduces the number of lines. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/setup-sh73a0.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) --- 0001/arch/arm/mach-shmobile/setup-sh73a0.c +++ work/arch/arm/mach-shmobile/setup-sh73a0.c 2013-06-28 19:16:07.000000000 +0900 @@ -958,10 +958,6 @@ void __init sh73a0_add_early_devices(voi #ifdef CONFIG_USE_OF -static const struct of_dev_auxdata sh73a0_auxdata_lookup[] __initconst = { - {}, -}; - void __init sh73a0_add_standard_devices_dt(void) { struct platform_device_info devinfo = { .name = "cpufreq-cpu0", .id = -1, }; @@ -971,8 +967,7 @@ void __init sh73a0_add_standard_devices_ platform_add_devices(sh73a0_devices_dt, ARRAY_SIZE(sh73a0_devices_dt)); - of_platform_populate(NULL, of_default_bus_match_table, - sh73a0_auxdata_lookup, NULL); + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); /* Instantiate cpufreq-cpu0 */ platform_device_register_full(&devinfo);