linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: fu740: Remove unnecessary include files
@ 2022-07-19 17:33 Bjorn Helgaas
  2022-07-20 22:49 ` Bjorn Helgaas
  0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2022-07-19 17:33 UTC (permalink / raw)
  To: Paul Walmsley, Greentime Hu; +Cc: linux-pci, linux-kernel, Bjorn Helgaas

From: Bjorn Helgaas <bhelgaas@google.com>

fu740 uses no syscon or regman interfaces, so it doesn't need to include
mfs/syscon.h.  It uses no regulator interfaces, so it doesn't need to
include regulator/consumer.h either.

Remove both unnecessary includes.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/pci/controller/dwc/pcie-fu740.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pci/controller/dwc/pcie-fu740.c b/drivers/pci/controller/dwc/pcie-fu740.c
index 02cc70d8cc06..e8b008f73f34 100644
--- a/drivers/pci/controller/dwc/pcie-fu740.c
+++ b/drivers/pci/controller/dwc/pcie-fu740.c
@@ -16,11 +16,9 @@
 #include <linux/gpio.h>
 #include <linux/gpio/consumer.h>
 #include <linux/kernel.h>
-#include <linux/mfd/syscon.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/platform_device.h>
-#include <linux/regulator/consumer.h>
 #include <linux/resource.h>
 #include <linux/types.h>
 #include <linux/interrupt.h>
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] PCI: fu740: Remove unnecessary include files
  2022-07-19 17:33 [PATCH] PCI: fu740: Remove unnecessary include files Bjorn Helgaas
@ 2022-07-20 22:49 ` Bjorn Helgaas
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2022-07-20 22:49 UTC (permalink / raw)
  To: Paul Walmsley, Greentime Hu; +Cc: linux-pci, linux-kernel, Bjorn Helgaas

On Tue, Jul 19, 2022 at 12:33:21PM -0500, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
> 
> fu740 uses no syscon or regman interfaces, so it doesn't need to include
> mfs/syscon.h.  It uses no regulator interfaces, so it doesn't need to
> include regulator/consumer.h either.
> 
> Remove both unnecessary includes.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Applied to pci/ctrl/fu740 for v5.20.  Let me know if you object.

> ---
>  drivers/pci/controller/dwc/pcie-fu740.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/pci/controller/dwc/pcie-fu740.c b/drivers/pci/controller/dwc/pcie-fu740.c
> index 02cc70d8cc06..e8b008f73f34 100644
> --- a/drivers/pci/controller/dwc/pcie-fu740.c
> +++ b/drivers/pci/controller/dwc/pcie-fu740.c
> @@ -16,11 +16,9 @@
>  #include <linux/gpio.h>
>  #include <linux/gpio/consumer.h>
>  #include <linux/kernel.h>
> -#include <linux/mfd/syscon.h>
>  #include <linux/module.h>
>  #include <linux/pci.h>
>  #include <linux/platform_device.h>
> -#include <linux/regulator/consumer.h>
>  #include <linux/resource.h>
>  #include <linux/types.h>
>  #include <linux/interrupt.h>
> -- 
> 2.25.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-20 22:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 17:33 [PATCH] PCI: fu740: Remove unnecessary include files Bjorn Helgaas
2022-07-20 22:49 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).