From patchwork Thu Nov 14 12:26:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 179405 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp10989639ilf; Thu, 14 Nov 2019 04:28:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwbvRqcQgP9k7B7eqj4QnoBEs6vHrkv4WjDYltHYwj0XZSB+9g6ixEcjU1iijr7eoFeHoEU X-Received: by 2002:a17:906:f18a:: with SMTP id gs10mr8101336ejb.107.1573734495887; Thu, 14 Nov 2019 04:28:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573734495; cv=none; d=google.com; s=arc-20160816; b=fUwysCNxeBEJmQOZJl1R8s7+o+DwtMLntJa12cCbsc9yglfXmDTIryJowMsYa1kVLZ gnsqOC+uXwIV31/NHGMgJbeyrXX617+WKDegFb31y1qzdJfXl1h59t0Nx4C13l8c+43t ZobDZOEAJaO8KhojIfGymkLhucNv2e7/r/D88NtqF3WknuAqj19vo3yTWVeQFTC6WIMi 3meuzhPm37Gwb9n1AG0OkMnjG5NDYaXaU20CsFWjwdtwIZ4W6Bw+EwvSjrIPmQjR2RTz JrcmPzNsw7sD3uuInHN/YRnOgEwgdeMYu34L3Yup1dYWPZqFyzi+nbN+VQFSJ4XsuIxF iAKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=9TSKJqihdLxzzA14xKVF4zpxiUSO4ACCxImJ7e5ZBeo=; b=tVJG0qjtEEl1N0eNrYlPcrtKvF7pZQfTE9zTfXjaS5ojzgGb8/y0U89X73hLS3Tvsa QVCYOggxY49EUgBRWZKIuaQb/hSOZT/q20A0C6S+4Ctac9uJdFMqhwWuIbELLvd3x74g Zs7RiH4ZmkyfSfCZjtwt3v4IxN2cGVEDeACTCUIYBYmf121io/Kfol0bIk1BCVVfeRk9 35/avisQYkuv5IJaJ+hUW31mCeeiqZwWY7gENk9uPNji28y2IEhE1oMvudHJBF9MLjQT t0J2l76B5Ym/2URwpNU5EnQA0sGGeYQHOlgSZ3l4e8oQxRH4GSCi3lyWN8Q9yjeTiLQ/ denw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=nyXT2As5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gx4si3450596ejb.182.2019.11.14.04.28.15; Thu, 14 Nov 2019 04:28:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=nyXT2As5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726567AbfKNM2L (ORCPT + 26 others); Thu, 14 Nov 2019 07:28:11 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:30366 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbfKNM2K (ORCPT ); Thu, 14 Nov 2019 07:28:10 -0500 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id xAECR7jJ000853; Thu, 14 Nov 2019 21:27:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com xAECR7jJ000853 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1573734429; bh=9TSKJqihdLxzzA14xKVF4zpxiUSO4ACCxImJ7e5ZBeo=; h=From:To:Cc:Subject:Date:From; b=nyXT2As5MHTHfqOrIp9o1kyhAFrBnQrqX5MU4L6ulbeKtAcvXGHIwUFS2rrI1jXaP HmYp4HnnM0gvS17ztD+LbBjQvcITVD4UVpQP0uCRR2bY+hU/wcQ4ytbkH+vFoPnzuK D84XJUweb6v3K5ybcZjKJ56SDHMezOrtTlPha1xPjCXih7x2lkehI1qehcL7ttskvx yt/8uHbqa4GRgC79VmmgBtwkSfdWO05FNogy/ll/PR0v4r+PUfle2g4vSPtF7hQ2CM o+gQLe3+kwd2Vc0ZDMWOP20qH6MbLpU0+JB0m+EfndVxCLbTCOo+ytkHSJUIr9hs9y dJEJHy8Ce5pww== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Lorenzo Pieralisi , Andrew Murray , linux-pci@vger.kernel.org Cc: Paul Gortmaker , Kunihiko Hayashi , Masahiro Yamada , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: uniphier: remove module code from built-in driver Date: Thu, 14 Nov 2019 21:26:54 +0900 Message-Id: <20191114122654.1490-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org builtin_platform_driver() and MODULE_* are always odd combination. The MODULE_* tags are never populated since CONFIG_PCIE_UNIPHIER is a bool option. You can see similar cleanups by: git log --grep='explicitly non-modular' Following those commits, remove all the MODULE_* tags and the driver detach code. Signed-off-by: Masahiro Yamada Reviewed-by: Kunihiko Hayashi --- drivers/pci/controller/dwc/pcie-uniphier.c | 31 +--------------------- 1 file changed, 1 insertion(+), 30 deletions(-) -- 2.17.1 diff --git a/drivers/pci/controller/dwc/pcie-uniphier.c b/drivers/pci/controller/dwc/pcie-uniphier.c index 3f30ee4a00b3..8c92b660a0f6 100644 --- a/drivers/pci/controller/dwc/pcie-uniphier.c +++ b/drivers/pci/controller/dwc/pcie-uniphier.c @@ -9,11 +9,11 @@ #include #include #include +#include #include #include #include #include -#include #include #include #include @@ -161,12 +161,6 @@ static void uniphier_pcie_irq_enable(struct uniphier_pcie_priv *priv) writel(PCL_RCV_INTX_ALL_ENABLE, priv->base + PCL_RCV_INTX); } -static void uniphier_pcie_irq_disable(struct uniphier_pcie_priv *priv) -{ - writel(0, priv->base + PCL_RCV_INT); - writel(0, priv->base + PCL_RCV_INTX); -} - static void uniphier_pcie_irq_ack(struct irq_data *d) { struct pcie_port *pp = irq_data_get_irq_chip_data(d); @@ -387,14 +381,6 @@ static int uniphier_pcie_host_enable(struct uniphier_pcie_priv *priv) return ret; } -static void uniphier_pcie_host_disable(struct uniphier_pcie_priv *priv) -{ - uniphier_pcie_irq_disable(priv); - phy_exit(priv->phy); - reset_control_assert(priv->rst); - clk_disable_unprepare(priv->clk); -} - static const struct dw_pcie_ops dw_pcie_ops = { .start_link = uniphier_pcie_establish_link, .stop_link = uniphier_pcie_stop_link, @@ -446,31 +432,16 @@ static int uniphier_pcie_probe(struct platform_device *pdev) return uniphier_add_pcie_port(priv, pdev); } -static int uniphier_pcie_remove(struct platform_device *pdev) -{ - struct uniphier_pcie_priv *priv = platform_get_drvdata(pdev); - - uniphier_pcie_host_disable(priv); - - return 0; -} - static const struct of_device_id uniphier_pcie_match[] = { { .compatible = "socionext,uniphier-pcie", }, { /* sentinel */ }, }; -MODULE_DEVICE_TABLE(of, uniphier_pcie_match); static struct platform_driver uniphier_pcie_driver = { .probe = uniphier_pcie_probe, - .remove = uniphier_pcie_remove, .driver = { .name = "uniphier-pcie", .of_match_table = uniphier_pcie_match, }, }; builtin_platform_driver(uniphier_pcie_driver); - -MODULE_AUTHOR("Kunihiko Hayashi "); -MODULE_DESCRIPTION("UniPhier PCIe host controller driver"); -MODULE_LICENSE("GPL v2");