From patchwork Thu Jun 25 08:58:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 6672721 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 28BF9C05AC for ; Thu, 25 Jun 2015 08:55:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4AD4220528 for ; Thu, 25 Jun 2015 08:55:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B1EC20520 for ; Thu, 25 Jun 2015 08:55:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751986AbbFYIzf (ORCPT ); Thu, 25 Jun 2015 04:55:35 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:33072 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751540AbbFYIzc (ORCPT ); Thu, 25 Jun 2015 04:55:32 -0400 Received: by pdjn11 with SMTP id n11so49302413pdj.0 for ; Thu, 25 Jun 2015 01:55:32 -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=Al/5PLOxNJjML1pxDGKaQRj0veAZSgTjJFl0aNLlEC0=; b=Fgl1jrWL2UYdE62qWZ1Ca2qyDETJ6bZvZGOvJBufUulRBJ9rLv4HqOW4f14wAc3Wo1 vwzayP4oedkmQntJTEbZBwZYwnPrA7SNyk7DngJGTtLQTpeBpzoQkQA5oh7TcR8+CQZH 042tnHaNxxwb/JlK9XxRypLixy24g6k8N1t7aYlMTRtkpRAc9RXGQ6LwkCs+DQSJwskK 69zVBURvN8HAOuUkagfp/2wSXTVbMkV/FQDYmoL4N4CeTwhn99Nj8eVO+xdyNEVs3zN1 /uKFU/505UoSxq+htJHk+eeE0O2pOVQHOhv0RDsSn7a4jZ37jDJSclIdhBx2QAHLHsrf ED6Q== X-Received: by 10.67.3.3 with SMTP id bs3mr88958230pad.51.1435222531999; Thu, 25 Jun 2015 01:55:31 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id ng13sm29300769pdb.82.2015.06.25.01.55.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 01:55:30 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , horms@verge.net.au, laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be Date: Thu, 25 Jun 2015 17:58:23 +0900 Message-Id: <20150625085823.24543.23737.sendpatchset@little-apple> In-Reply-To: <20150625085716.24543.84444.sendpatchset@little-apple> References: <20150625085716.24543.84444.sendpatchset@little-apple> Subject: [PATCH v2 06/06] ARM: shmobile: r8a7779: Cleanup header file Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 Remove unused function prototypes from r8a7779.h and make the functions static. Signed-off-by: Magnus Damm Acked-by: Geert Uytterhoeven --- Changes since V1: - left r8a7779_read_mode_pins() since it used by legacy clock code - removed r8a7779_clock_init() from the header file arch/arm/mach-shmobile/clock-r8a7779.c | 2 +- arch/arm/mach-shmobile/r8a7779.h | 2 -- arch/arm/mach-shmobile/setup-r8a7779.c | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/arm/mach-shmobile/clock-r8a7779.c +++ work/arch/arm/mach-shmobile/clock-r8a7779.c 2015-06-25 17:18:28.972366518 +0900 @@ -201,7 +201,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("rcar-du-r8a7779", &mstp_clks[MSTP103]), /* DU */ }; -void __init r8a7779_clock_init(void) +static void __init r8a7779_clock_init(void) { u32 mode = r8a7779_read_mode_pins(); int k, ret = 0; --- 0001/arch/arm/mach-shmobile/r8a7779.h +++ work/arch/arm/mach-shmobile/r8a7779.h 2015-06-25 17:18:28.972366518 +0900 @@ -11,7 +11,6 @@ enum { }; extern void r8a7779_init_irq_extpin(int irlm); -extern void r8a7779_init_irq_extpin_dt(int irlm); extern void r8a7779_init_irq_dt(void); extern void r8a7779_map_io(void); extern void r8a7779_earlytimer_init(void); @@ -19,7 +18,6 @@ extern void r8a7779_add_early_devices(vo extern void r8a7779_add_standard_devices(void); extern void r8a7779_init_late(void); extern u32 r8a7779_read_mode_pins(void); -extern void r8a7779_clock_init(void); extern void r8a7779_pinmux_init(void); extern void r8a7779_pm_init(void); extern void r8a7779_register_twd(void); --- 0004/arch/arm/mach-shmobile/setup-r8a7779.c +++ work/arch/arm/mach-shmobile/setup-r8a7779.c 2015-06-25 17:18:28.972366518 +0900 @@ -99,7 +99,7 @@ static struct resource irqpin0_resources DEFINE_RES_IRQ(gic_spi(30)), /* IRQ3 */ }; -void __init r8a7779_init_irq_extpin_dt(int irlm) +static void __init r8a7779_init_irq_extpin_dt(int irlm) { void __iomem *icr0 = ioremap_nocache(0xfe780000, PAGE_SIZE); u32 tmp;