From patchwork Thu Jan 28 16:23:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8152151 Return-Path: X-Original-To: patchwork-linux-omap@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 92F08BEEE5 for ; Thu, 28 Jan 2016 16:24:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3609D20340 for ; Thu, 28 Jan 2016 16:24:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B8B0202F8 for ; Thu, 28 Jan 2016 16:24:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967123AbcA1QYK (ORCPT ); Thu, 28 Jan 2016 11:24:10 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:59289 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966462AbcA1QYI (ORCPT ); Thu, 28 Jan 2016 11:24:08 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue002) with ESMTPA (Nemesis) id 0MLFtx-1aP6TH37nV-000HdT; Thu, 28 Jan 2016 17:23:34 +0100 From: Arnd Bergmann To: Felipe Balbi Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Felipe Balbi , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Jarzmik , Haojian Zhuang , Daniel Mack , Imre Kaloz , Krzysztof Halasa , Greg Kroah-Hartman , linux-omap@vger.kernel.org Subject: [PATCH 5/7] usb: isp1301-omap: mark power_up as __maybe_unused Date: Thu, 28 Jan 2016 17:23:13 +0100 Message-Id: <1453998206-3490016-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1453997722-3489596-1-git-send-email-arnd@arndb.de> References: <1453997722-3489596-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:jcsbs/Nx7eLQnkwkShxhhtxCakUF3NHfAmQgXGxr+PHX7Tg5sDU n+iStGcCxVCBPWt0/24kVItJ3oZGneY0jEP4/Dm8wuUUsbkqWY+eCqMBuizzbLAKgZlBskW +iN/FXNB7W1Y8rBnIqhIU7ry1z+DICW4kjhbLu0K52py0KOjEj/GkoTE4YFcwPnHDin3SMj rMK8aXV7cmsl6RZVu5d2A== X-UI-Out-Filterresults: notjunk:1; V01:K0:FwOKTz+ELIM=:cll4hxBpE+U/3Gd1yYbs1L IpveqdrlrKWFqaB9n5SG1uzbqgiBoW1moCEv4hYSF/YOV6nx4+6bp9p6OcCVRaqJL9sFeZ5H/ bBUBdcDZI4JCDR8BDif5E8P303WtpvWhYYEo0PaKHl5qjsOiHrDblu480gLvN12xU0/4YZabz SjYj9yiyRFdLZkKK2Wd+rN2mds8hg+DoEsGQ/ZNBLwui3l9MaKehIa3rjlsti1mpxgavvBbqC 1zdf2cOdJ6gOpzXMp1Yj00ibaD2J4+vwfk9aKHEJvrY3WOrxjFY0uD69OT1NKKE07+Wb0ynCH RARTysLQlWdzDJLo/7a/GOsrRMRbR/ECG24aB8trNZ0JLEKAUiSTWBMPNhohyO7QpucfQGpUO sbhANfG8TrYzSlrrvpxr/XVIkmnCVk/ncCVRSI/dZtcME51u3XnC98tfDOwrrO3LxKQEE0pTN 4K/Fqv3M69tisgiYiillWFzs/YAI9TCtqdM/g22jappv7YG99M/qrViuQKSdZMSiGaotzCtbu uHGoDgDmACudUGmH7ezU1DUJRjCYBkWPDEcNv6I9vUc2B4aPv1KTFbHTvxMcoAMGHXaRqV+HQ zDUp5C7YnGicxpjLanmOO6p+QiM+r1MZLfd3qw9r9RiOVnOyAunenKMx503uGLhSNAvOC7VLp YwRmIG8eLMPtBBaPMwgaVZZS7ZiDBeVj3wAR7LTS/juYZEHqNU2WRBvCk5BbOXsBYmfQ= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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=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 The power_up function is used for otg or udc mode, but nost when the driver is only configured for host mode: drivers/usb/phy/phy-isp1301-omap.c:261:13: error: 'power_up' defined but not used [-Werror=unused-function] This marks the function __maybe_unused to avoid the warning and silently drop the definition when it is unused. Signed-off-by: Arnd Bergmann --- drivers/usb/phy/phy-isp1301-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-isp1301-omap.c b/drivers/usb/phy/phy-isp1301-omap.c index 3af263cc0caa..8d111ec653e4 100644 --- a/drivers/usb/phy/phy-isp1301-omap.c +++ b/drivers/usb/phy/phy-isp1301-omap.c @@ -258,7 +258,7 @@ static void power_down(struct isp1301 *isp) isp1301_clear_bits(isp, ISP1301_MODE_CONTROL_1, MC1_DAT_SE0); } -static void power_up(struct isp1301 *isp) +static void __maybe_unused power_up(struct isp1301 *isp) { // isp1301_clear_bits(isp, ISP1301_MODE_CONTROL_2, MC2_GLOBAL_PWR_DN); isp1301_clear_bits(isp, ISP1301_MODE_CONTROL_1, MC1_SUSPEND);