From patchwork Mon Feb 17 07:35:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3660441 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5B2AC9F38B for ; Mon, 17 Feb 2014 07:34:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 87306201F4 for ; Mon, 17 Feb 2014 07:34:27 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9994C201DE for ; Mon, 17 Feb 2014 07:34:26 +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 1WFIia-0000ql-E4; Mon, 17 Feb 2014 07:34:20 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFIiX-0002BA-Uy; Mon, 17 Feb 2014 07:34:17 +0000 Received: from mail-pd0-x22a.google.com ([2607:f8b0:400e:c02::22a]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFIiU-00029u-TU for linux-arm-kernel@lists.infradead.org; Mon, 17 Feb 2014 07:34:15 +0000 Received: by mail-pd0-f170.google.com with SMTP id p10so14564539pdj.29 for ; Sun, 16 Feb 2014 23:33:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=eMlMtBiUXp3xdwn1YclE5jNmSYJyfXvtbuJbAh3WTtM=; b=pvTo13RYMZQ7ry7956bwYDlnRnL62jeghoiuaCYgPX+50EbQrlUphFWHAzMAVOhATR knd6TZUKqSRL5VZObUAtjsP/2sQZPdoktvCpPTjNdRLzO7dm8SbZKwdo0RHbzejKUINP J2doCE4/PCXG/KlwfEjg5MWdOz5lUb5hYWohTsegHSgU0TJEL8PyBjeXzntBU4dIpA+z p8EzrLXIDhTzjuNcIGPV5zxX39PogSOnfXKWXDmUcB+I+pyFpLrPmy8/FK+sc72IU1iI SPnmw4KZRai3OD1KkaC+0/nkYbkJ7RaBXNogUE5zX9hLIbtt/kxv08zrBRyZNjUj9c69 0r7Q== X-Received: by 10.68.94.4 with SMTP id cy4mr13157282pbb.101.1392622433245; Sun, 16 Feb 2014 23:33:53 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id ug2sm110743758pac.21.2014.02.16.23.33.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Feb 2014 23:33:52 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Mon, 17 Feb 2014 16:35:08 +0900 Message-Id: <20140217073508.11156.21720.sendpatchset@w520> Subject: [PATCH] ARM: shmobile: Remove EMEV2 header file X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140217_023415_082916_BC91DC49 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: horms@verge.net.au, Magnus Damm , linux-arm-kernel@lists.infradead.org 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.6 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=unavailable 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 There is no C board code left for the EMEV2 SoC, so get rid of the emev2.h include file to save some lines. While at it make functions static. Signed-off-by: Magnus Damm --- Written against renesas-devel-v3.14-rc3-20140217 Depends on "[PATCH v2] ARM: shmobile: Remove KZM9D board code" arch/arm/mach-shmobile/include/mach/emev2.h | 8 -------- arch/arm/mach-shmobile/setup-emev2.c | 7 ++++--- arch/arm/mach-shmobile/smp-emev2.c | 1 - 3 files changed, 4 insertions(+), 12 deletions(-) --- 0001/arch/arm/mach-shmobile/include/mach/emev2.h +++ /dev/null 2013-06-03 21:41:10.638032047 +0900 @@ -1,8 +0,0 @@ -#ifndef __ASM_EMEV2_H__ -#define __ASM_EMEV2_H__ - -extern void emev2_map_io(void); -extern void emev2_init_delay(void); -extern struct smp_operations emev2_smp_ops; - -#endif /* __ASM_EMEV2_H__ */ --- 0001/arch/arm/mach-shmobile/setup-emev2.c +++ work/arch/arm/mach-shmobile/setup-emev2.c 2014-02-17 16:30:05.000000000 +0900 @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -38,12 +37,12 @@ static struct map_desc emev2_io_desc[] _ #endif }; -void __init emev2_map_io(void) +static void __init emev2_map_io(void) { iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc)); } -void __init emev2_init_delay(void) +static void __init emev2_init_delay(void) { shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */ } @@ -59,6 +58,8 @@ static const char *emev2_boards_compat_d NULL, }; +extern struct smp_operations emev2_smp_ops; + DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") .smp = smp_ops(emev2_smp_ops), .map_io = emev2_map_io, --- 0001/arch/arm/mach-shmobile/smp-emev2.c +++ work/arch/arm/mach-shmobile/smp-emev2.c 2014-02-17 16:25:23.000000000 +0900 @@ -24,7 +24,6 @@ #include #include #include -#include #include #include