Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1857988pxb; Fri, 5 Mar 2021 01:05:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJycx0rsZ1SDVgRei9JAqWgs61ahOFF0hTSDaXeYyOdew/8Wtshcy0qOADOQWSvefIetewMq X-Received: by 2002:a05:6402:382:: with SMTP id o2mr8397076edv.238.1614935123992; Fri, 05 Mar 2021 01:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614935123; cv=none; d=google.com; s=arc-20160816; b=ZaiAXt96qEtOiryvHJ/p2CfYmw7LsQdKBpFaNTFOc0Ky1iY3Th7ZIBrcxnH02bPGKx RSVwrIVLaIFFlSe6XCaB7Iw4Fk72Sf4F6d7M6LOZdelxYxVCU9vySKDkKhjtLCWXpJHO H3xw2Imci2+Q76iqlstSXVvR/3kj+J2RaqvA1t3Uejxv1N30w68bMDfeVB+RsvixJF5Y RPrypuuT8tUKOvPNKiNp3+m5EcsMeDf1rQKGtRyLAsO2NUkUibZvRqP7b1qBLhvfcxCw WNLpi2yJ1koIk3xF7FxNHZiP1ZmAJ/3GAQWJMJi/ea9g9a7MmafTM1BW91YwWhRCrhwz 5VOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=9VlnKAJmdnYYE2b6cN1jNFuWut+n14hu2QJAE0Ni0o0=; b=Xg5W02XXbOhiBPtJ4mmwH2VcBmTy6BRfaaCja3UN/p4WEtWLZM6+x1P0PDgzgXUFNd nXVRqPIS8TkV0pt9MhBI5JwaZPyjgBMzu3DyicUAwu1ryhgEuhd0bdM0qIjFTr3HWffZ J0NWsHtKTfHk79xXPzM+sCnZTN5N0MLuuTvE4/ZxUGhQ69mW6tG1z439SUy9YML0+mH5 OJRIoyIzb7HHqOdhu4FUyIQRSyy1dWwDBrnWQVBR0OA3w89gvvDUjOXMDNPcr/OxRmXx Cb8wRsNFlZzQMdY1KkEfMfQpqmXveZBevAgUa9sf/9QDbFVEzhsLtx4nVD3NwOCffh7r JBjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw11si1047447ejb.2.2021.03.05.01.04.58; Fri, 05 Mar 2021 01:05:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230050AbhCEJDq (ORCPT + 99 others); Fri, 5 Mar 2021 04:03:46 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:44259 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229747AbhCEJD3 (ORCPT ); Fri, 5 Mar 2021 04:03:29 -0500 X-UUID: 43c83aa59ea5411ea7889b21e73aee26-20210305 X-UUID: 43c83aa59ea5411ea7889b21e73aee26-20210305 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1434150454; Fri, 05 Mar 2021 17:03:26 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 5 Mar 2021 17:03:24 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 5 Mar 2021 17:03:24 +0800 From: Chunfeng Yun To: Mathias Nyman , Greg Kroah-Hartman , Ikjoon Jang CC: Chunfeng Yun , Matthias Brugger , , , , , Nicolas Boichat , Eddie Hung Subject: [PATCH 14/17] usb: xhci-mtk: remove declaration of xhci_mtk_setup() Date: Fri, 5 Mar 2021 17:02:52 +0800 Message-ID: <1614934975-15188-14-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1614934975-15188-1-git-send-email-chunfeng.yun@mediatek.com> References: <1614934975-15188-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E394FF94E19BE99EEFB4B02F7C35F7A23C8C9D95F848F399261E29230F48E3CA2000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move xhci_driver_overrides struct variable after definition of xhci_mtk_setup(), then we can remove it's declaration. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index fe010cc61f19..fb4e56f6a6c3 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -344,15 +344,6 @@ static void usb_wakeup_set(struct xhci_hcd_mtk *mtk, bool enable) usb_wakeup_ip_sleep_set(mtk, enable); } -static int xhci_mtk_setup(struct usb_hcd *hcd); -static const struct xhci_driver_overrides xhci_mtk_overrides __initconst = { - .reset = xhci_mtk_setup, - .check_bandwidth = xhci_mtk_check_bandwidth, - .reset_bandwidth = xhci_mtk_reset_bandwidth, -}; - -static struct hc_driver __read_mostly xhci_mtk_hc_driver; - static int xhci_mtk_ldos_enable(struct xhci_hcd_mtk *mtk) { int ret; @@ -424,6 +415,14 @@ static int xhci_mtk_setup(struct usb_hcd *hcd) return ret; } +static const struct xhci_driver_overrides xhci_mtk_overrides __initconst = { + .reset = xhci_mtk_setup, + .check_bandwidth = xhci_mtk_check_bandwidth, + .reset_bandwidth = xhci_mtk_reset_bandwidth, +}; + +static struct hc_driver __read_mostly xhci_mtk_hc_driver; + static int xhci_mtk_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; -- 2.18.0