From patchwork Fri Jan 29 14:50:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101020 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1164119lbb; Fri, 29 Jan 2016 06:52:51 -0800 (PST) X-Received: by 10.67.6.1 with SMTP id cq1mr13839702pad.78.1454079171616; Fri, 29 Jan 2016 06:52:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 193si24709688pfa.204.2016.01.29.06.52.51; Fri, 29 Jan 2016 06:52:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932306AbcA2Owt (ORCPT + 30 others); Fri, 29 Jan 2016 09:52:49 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:53486 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756389AbcA2Ovi (ORCPT ); Fri, 29 Jan 2016 09:51:38 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0LnSVK-1ZspRD3Ncc-00hhAn; Fri, 29 Jan 2016 15:51:09 +0100 From: Arnd Bergmann To: linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Kukjin Kim , Krzysztof Kozlowski , linux-kernel@vger.kernel.org Subject: [PATCH 3/6] ARM: s3c24xx: fix unused gta02_configure_pmu_for_charger warning Date: Fri, 29 Jan 2016 15:50:35 +0100 Message-Id: <1454079040-3567945-4-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454079040-3567945-1-git-send-email-arnd@arndb.de> References: <1454079040-3567945-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:BRk1DiFR/wDRVRI15MLoxjfSjt+2oGdc7nFnf3p72AB3YMATj87 +a7T4Se+uCKGzt/y/rhk0kYycBvbt72KD4VfZGbnRSaJRa4F4nebo4VQo9S6y4uGkswrRDU eAvycD1eRRoxw2d241zKXMqU2j96i8naoZnXXLLZ0iYNYG7NCCXCsvweAkOLQI7+6r+ddAQ pp1a8gMCeQo1YYuiun85w== X-UI-Out-Filterresults: notjunk:1; V01:K0:UuOHjgnvbCQ=:nrHKQOz5sz66vB6BuUDkxK vKPzaJR7e5vUDL+os+6sAvOnu82NdVu6NUxzlCeFVw50Zwt3L5UqMKz8mTvrJzrFWie+ycllX gG8w5h5d4aJx6ykGcU3Ev/RoDGHD60bymXpoNc3uVTs/bkzBbs1B/VQhToyY/PVT7+CeH5CDw HND+fB/H49eEMLbuG0C59bIZtifzFrwG+1CQ+wB/+lYD5sFTn5EhpKmucGmBrFkfbqNwKVAlM bUDvMAaJadx9TSXmnMOKRu216GEFc2MXjpHE8bPSFxcShXwxUK3YNX4tG12m7gcdX9t1/EnCx 6PZesuzBsd6HiKQy+bUbxJC49fzBQFLfLgUR93mvUVP+jLWTGMUhGrefBWTHlxegD7ay2fqu3 57d7pU49t7ZNVipnFRllrJLKadTAiLXn+63COtVtrmK+Kd91uNzXus/EZ5+LzCXa1yRO52UMM QpwgHQgc+0qx60M0i4PV0mV8qkwQXoxYcFToPq7FsAulKt/XHJUXmtdyCi5+JUfjHZw+MJ2oL ZSDCkJw0g/nPjJn/UB7HBPoF36/6JBjpVgNIJYwUrENAcuuhbGXuHn9vnXJCq7oPwf1R3NM/U KhJd4uMU2wCf0fI4cu3Ao6fDf/O2tRSgpJWkYR2AQ5gH3pfH8J6PP0/1dTCk1nZFo9oLTA6Vn LIDu9pgXlYryDDAfQzRmCo3UI6T5sFFH1ohGRzlUBpd+fKEbuIptkl9xl3nVjA9OKVuA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gta02_configure_pmu_for_charger is only used when CONFIG_PCF50633_ADC is set, and otherwise we get a warning about an unused symbol: arch/arm/mach-s3c24xx/mach-gta02.c:158:1: warning: 'gta02_configure_pmu_for_charger' defined but not used [-Wunused-function] gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res) This adds an #ifdef to shut up the warning. Signed-off-by: Arnd Bergmann --- arch/arm/mach-s3c24xx/mach-gta02.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.0 Reviewed-by: Krzysztof Kozlowski diff --git a/arch/arm/mach-s3c24xx/mach-gta02.c b/arch/arm/mach-s3c24xx/mach-gta02.c index 6d1e0b9c5b27..27ae6877550f 100644 --- a/arch/arm/mach-s3c24xx/mach-gta02.c +++ b/arch/arm/mach-s3c24xx/mach-gta02.c @@ -154,6 +154,7 @@ static struct s3c2410_uartcfg gta02_uartcfgs[] = { #define ADC_NOM_CHG_DETECT_1A 6 #define ADC_NOM_CHG_DETECT_USB 43 +#ifdef CONFIG_PCF50633_ADC static void gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res) { @@ -174,6 +175,7 @@ gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res) pcf50633_mbc_usb_curlim_set(pcf, ma); } +#endif static struct delayed_work gta02_charger_work; static int gta02_usb_vbus_draw;