From patchwork Wed Jan 10 16:45:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10155685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9445A601A1 for ; Wed, 10 Jan 2018 16:51:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 841EC26255 for ; Wed, 10 Jan 2018 16:51:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7814628433; Wed, 10 Jan 2018 16:51:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 14F9426255 for ; Wed, 10 Jan 2018 16:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=SlUrAvETdZoZ6EEf0RzO3TTIntUUHP2P76qZMuxtKDc=; b=Lwo SFRVVU1wiBLp1jkaD4WTtxK+ZrtoQq3W3r/srvTmJoGmtBr0vMrZvmNSiwufK8Em+bHkhQfhvLq9h Atk9s4VV3seBXLdElkVAWCXbFxOAOjLKKW8Znyc9TJw5XX0XZxecWMZOijfvLlzgqxUPXngJPpuz4 rRWuzbCDTeeG6W3/jDfgmFuKxkqABrObOayWfkYwOYe47boXY+y0/v3/A46G/40R8buQj8BylTRZd GSf5YFUgs65cpj1F06LU9PBIJzVDLgk8MSXs1+OnVekkF8EUKROOh5yPlq2Fi3UizBvJ6IyYjl1vr 04mruo1BErgpGfcXVTedGSrl7VD1kvw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eZJb1-0007zS-Kk; Wed, 10 Jan 2018 16:51:23 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eZJan-0007kf-Ak; Wed, 10 Jan 2018 16:51:11 +0000 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MekHI-1eFTL51wlM-00ODZ6; Wed, 10 Jan 2018 17:45:35 +0100 From: Arnd Bergmann To: Chunfeng Yun , Greg Kroah-Hartman Subject: [PATCH] usb: mtu3: fix ssusb_wakeup_set dummy Date: Wed, 10 Jan 2018 17:45:21 +0100 Message-Id: <20180110164530.1399750-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:wvrWTVxRE19EVQbyGny86q6IJUtqq4wGVR3D7DU8FiCbLvmuEJT GkHqqcbulxjFkiojfkgf6Ore3KiDNkrMDM++2rT85HVm9ERXKoS/EjbIf5BU9arN5wNLZ8L 8whUZNRDiIwfkt0XQ6WCTWkYxSLPjWZtGPaDtNHG+Rkm3vjjEla3hXru1ZblyJQZcVGY+Rj CtxNwnA1d5aGiFOkEqoQw== X-UI-Out-Filterresults: notjunk:1; V01:K0:gREdKRIW2fc=:v5yA4I7R/qUv4VP/L0YblD XirPwGEsgkVwzooeCglKIX1dqSBm5+vG0I67GDHmq/Z6TzPsUD7HasCOx5H+gdXK202nLMMyj a0tNathAbA1eMlqK1XPUOfXVa+96Wu2ED/VqvjtfNmKJRPujdyLeyCUevMDMyqnGrQ8h2nJUb VxMvisbga2GEdvI0rxXU70xeHHV9MDPUpcJCFHBksRn9TiV7Ef4gdqJ+fWf+3HdxM/RuHWT0R VBpQ8BGBarqN+Q37aQoSKkiYEqWMDm1hQF/F80Q0ok8M0Eh1N7oqY8kyiU8Kc2WFAjSWSPQp8 d83apxMChDnfYTvF9O5ZXrerXUFSAsf4HeT/JQl+2UBO7ZKGaM3phKhsxbLGmqcEAslMO840+ Pi/mOfArKsfJEcq6lAFLBToo5YqvDKEXb+mCFqnS80n4CH4eTkQ28tEPB72HlAeBfVMrqptfE 7uAcMtTFprdiPZOu+0AbyRa3D+dwd6nx/S3TccboQXPklMfHsgSYqK3szyVrbs/QL1+z/hgmH S7+huPioDGIdj1Z7sLxcjBRHcRFVwOZmFwJ/YwL0f7Qz1B8pFHz2nifzy02er2eS397Wby0Xb wpJX5rNi3u6cnEEv+T3RxKmO3FOb2MLolGrRaA+2DKmN90rsAnxYUQyRhSH62XURzvcG2OBzW 5Un1zku4r8eAYETIrNlI6g+dgBG1SEva8jBYdSq9f5eCTxO6zKPp14UZEfTc9O7CzmkhA/gIB OOiSN/BXNAPvcgv6UbNTOLqhTNplnHI5kVBfxA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180110_085109_715525_0A28E013 X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Felipe Balbi , linux-usb@vger.kernel.org, Johan Hovold , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Changing from ssusb_wakeup_enable/disable to ssusb_wakeup_set was done in only one of two places in the kernel, the other one now causes a build failure: drivers/usb/mtu3/mtu3_plat.c: In function 'mtu3_suspend': drivers/usb/mtu3/mtu3_plat.c:462:2: error: implicit declaration of function 'ssusb_wakeup_set'; did you mean 'ssusb_wakeup_disable'? [-Werror=implicit-function-declaration] This adapts the dummy helpers the same way that the extern declarations were. Fixes: f0ede2c6282b ("usb: mtu3: supports remote wakeup for mt2712 with two SSUSB IPs") Signed-off-by: Arnd Bergmann Acked-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_dr.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_dr.h b/drivers/usb/mtu3/mtu3_dr.h index ae1598d76e02..50702fdcde28 100644 --- a/drivers/usb/mtu3/mtu3_dr.h +++ b/drivers/usb/mtu3/mtu3_dr.h @@ -48,12 +48,7 @@ static inline int ssusb_host_disable(struct ssusb_mtk *ssusb, bool suspend) return 0; } -static inline int ssusb_wakeup_enable(struct ssusb_mtk *ssusb) -{ - return 0; -} - -static inline void ssusb_wakeup_disable(struct ssusb_mtk *ssusb) +static inline void ssusb_wakeup_set(struct ssusb_mtk *ssusb, bool enable) {} #endif