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: 8164101 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9518E9F440 for ; Fri, 29 Jan 2016 14:53:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BABE12039D for ; Fri, 29 Jan 2016 14:53:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB9E020265 for ; Fri, 29 Jan 2016 14:53:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932120AbcA2Owt (ORCPT ); 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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 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 Reviewed-by: Krzysztof Kozlowski --- arch/arm/mach-s3c24xx/mach-gta02.c | 2 ++ 1 file changed, 2 insertions(+) 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;