Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1578392pxb; Mon, 8 Mar 2021 00:39:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqutv+H42AJJo1JeRe8X78a98x5jBlqx8E6l15GL4xDN7J8u+aCU8E0DZpJaBAay1Vmytv X-Received: by 2002:a17:906:558:: with SMTP id k24mr14061481eja.387.1615192785690; Mon, 08 Mar 2021 00:39:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615192785; cv=none; d=google.com; s=arc-20160816; b=KXlxo3SS+nxyI1zu1ZWm/+NYQ8TfsV1d6L3OeLMjolCW/2kNCUC6q1TqQlhtjFjrVg ipfjFUTPTbUW1PZ0434R4QMK7a0yx2jzoV/CbxMLfG7DleOW9J5ZmVLqhJtxVg+BXJHg DZIP2idFFjOFzLIYljSMzD8fhPEr6Yq2WgDD+GUxPVaJAgM2baJWHpyXIQl4fVekgLFu k6jUkmia79A9vOgipPtPEJiWKd13L48AGPiONhJueTcQAujQRP5NEIEOJf2JCm+/OkPk ak1uTNV0oBJpBq+IPCg6BUidK9NFgYbUFJweHntnrkwPAJzM5F/fSRxuTkSaLRRVTt7O +bww== 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=aJ7NZrjbypeNcmDpJzWjBuSYhd7uARu92NR3soH0V0A=; b=pScbE2Ct6dNENhLR7U5W3T+VChoitvdryEWDBet5TitrcvhDoX93pqzKjwTxRDogmp /kuT3jrtFny6kIsYAW9nGaJbTJ6kXEMQdZvpSBAM+k+3XoKyiQcBNvkmEneYhGWqJTzI C/zBNM0/tFv3veg1HKtj+lgiPY33PoNm7xqT0uwRuR0gUmA72rx+SpfQD3rBR3DhsIn0 9kPGBHdlYr62quSiFhCI1GGerx5pSJgHjf5ZLNLOqedEhMjuAMP+1OmtjSTkpxZVf31e HDcq8XUacJzLs+GZDSW0q40oePDznSqXDI3H5zqfQDFk45OGhTnMpRV0gqLrAM38+6TJ bKlA== 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 v19si5538012edc.70.2021.03.08.00.39.23; Mon, 08 Mar 2021 00:39:45 -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 S233814AbhCHCww (ORCPT + 99 others); Sun, 7 Mar 2021 21:52:52 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:36619 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232422AbhCHCwa (ORCPT ); Sun, 7 Mar 2021 21:52:30 -0500 X-UUID: f3fe433580624938b47788698f779be0-20210308 X-UUID: f3fe433580624938b47788698f779be0-20210308 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] 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 1339500283; Mon, 08 Mar 2021 10:52:27 +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; Mon, 8 Mar 2021 10:52:26 +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; Mon, 8 Mar 2021 10:52:25 +0800 From: Chunfeng Yun To: Mathias Nyman , Greg Kroah-Hartman , Ikjoon Jang CC: Chunfeng Yun , Matthias Brugger , , , , , Nicolas Boichat , Eddie Hung , Sergei Shtylyov , Alan Stern Subject: [PATCH v2 14/18] usb: xhci-mtk: remove declaration of xhci_mtk_setup() Date: Mon, 8 Mar 2021 10:52:03 +0800 Message-ID: X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 89E7019BE4ACF905877E49FAC4A17713BC1049D70FA75A9EABC88D50890E6BE12000: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 --- v2: no changes --- 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