linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: Add explicit of.h of_platform.h include
@ 2023-04-10 23:26 Rob Herring
  2023-04-11  1:16 ` Thinh Nguyen
  2023-04-17  1:36 ` Chunfeng Yun (云春峰)
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring @ 2023-04-10 23:26 UTC (permalink / raw)
  To: Thinh Nguyen, Greg Kroah-Hartman, Chunfeng Yun
  Cc: linux-usb, linux-kernel, linux-arm-kernel, linux-mediatek

Several USB drivers use of_platform_* functions which are declared in
of_platform.h. of_platform.h gets implicitly included by of_device.h,
but that is going to be removed soon. Nothing else depends on of_device.h
so it can be dropped.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 drivers/usb/dwc3/dwc3-am62.c           | 2 +-
 drivers/usb/gadget/udc/rzv2m_usb3drd.c | 2 +-
 drivers/usb/mtu3/mtu3_host.c           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c
index 173cf3579c55..4d674a243784 100644
--- a/drivers/usb/dwc3/dwc3-am62.c
+++ b/drivers/usb/dwc3/dwc3-am62.c
@@ -11,7 +11,7 @@
 #include <linux/platform_device.h>
 #include <linux/mfd/syscon.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/pm_runtime.h>
 #include <linux/clk.h>
 #include <linux/regmap.h>
diff --git a/drivers/usb/gadget/udc/rzv2m_usb3drd.c b/drivers/usb/gadget/udc/rzv2m_usb3drd.c
index 3c8bbf843038..8aafd1ddf126 100644
--- a/drivers/usb/gadget/udc/rzv2m_usb3drd.c
+++ b/drivers/usb/gadget/udc/rzv2m_usb3drd.c
@@ -6,7 +6,7 @@
  */
 
 #include <linux/io.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/reset.h>
diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/mtu3/mtu3_host.c
index f3903367a6a0..177d2caf887c 100644
--- a/drivers/usb/mtu3/mtu3_host.c
+++ b/drivers/usb/mtu3/mtu3_host.c
@@ -11,7 +11,7 @@
 #include <linux/irq.h>
 #include <linux/kernel.h>
 #include <linux/mfd/syscon.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/regmap.h>
 
 #include "mtu3.h"
-- 
2.39.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] usb: Add explicit of.h of_platform.h include
  2023-04-10 23:26 [PATCH] usb: Add explicit of.h of_platform.h include Rob Herring
@ 2023-04-11  1:16 ` Thinh Nguyen
  2023-04-17  1:36 ` Chunfeng Yun (云春峰)
  1 sibling, 0 replies; 3+ messages in thread
From: Thinh Nguyen @ 2023-04-11  1:16 UTC (permalink / raw)
  To: Rob Herring
  Cc: Thinh Nguyen, Greg Kroah-Hartman, Chunfeng Yun,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org

On Mon, Apr 10, 2023, Rob Herring wrote:
> Several USB drivers use of_platform_* functions which are declared in
> of_platform.h. of_platform.h gets implicitly included by of_device.h,
> but that is going to be removed soon. Nothing else depends on of_device.h
> so it can be dropped.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  drivers/usb/dwc3/dwc3-am62.c           | 2 +-
>  drivers/usb/gadget/udc/rzv2m_usb3drd.c | 2 +-
>  drivers/usb/mtu3/mtu3_host.c           | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c
> index 173cf3579c55..4d674a243784 100644
> --- a/drivers/usb/dwc3/dwc3-am62.c
> +++ b/drivers/usb/dwc3/dwc3-am62.c
> @@ -11,7 +11,7 @@
>  #include <linux/platform_device.h>
>  #include <linux/mfd/syscon.h>
>  #include <linux/of.h>
> -#include <linux/of_device.h>
> +#include <linux/of_platform.h>
>  #include <linux/pm_runtime.h>
>  #include <linux/clk.h>
>  #include <linux/regmap.h>
> diff --git a/drivers/usb/gadget/udc/rzv2m_usb3drd.c b/drivers/usb/gadget/udc/rzv2m_usb3drd.c
> index 3c8bbf843038..8aafd1ddf126 100644
> --- a/drivers/usb/gadget/udc/rzv2m_usb3drd.c
> +++ b/drivers/usb/gadget/udc/rzv2m_usb3drd.c
> @@ -6,7 +6,7 @@
>   */
>  
>  #include <linux/io.h>
> -#include <linux/of_device.h>
> +#include <linux/of_platform.h>
>  #include <linux/platform_device.h>
>  #include <linux/pm_runtime.h>
>  #include <linux/reset.h>
> diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/mtu3/mtu3_host.c
> index f3903367a6a0..177d2caf887c 100644
> --- a/drivers/usb/mtu3/mtu3_host.c
> +++ b/drivers/usb/mtu3/mtu3_host.c
> @@ -11,7 +11,7 @@
>  #include <linux/irq.h>
>  #include <linux/kernel.h>
>  #include <linux/mfd/syscon.h>
> -#include <linux/of_device.h>
> +#include <linux/of_platform.h>
>  #include <linux/regmap.h>
>  
>  #include "mtu3.h"
> -- 
> 2.39.2
> 

For dwc3 change:

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>

Thanks,
Thinh
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] usb: Add explicit of.h of_platform.h include
  2023-04-10 23:26 [PATCH] usb: Add explicit of.h of_platform.h include Rob Herring
  2023-04-11  1:16 ` Thinh Nguyen
@ 2023-04-17  1:36 ` Chunfeng Yun (云春峰)
  1 sibling, 0 replies; 3+ messages in thread
From: Chunfeng Yun (云春峰) @ 2023-04-17  1:36 UTC (permalink / raw)
  To: robh@kernel.org, Thinh.Nguyen@synopsys.com,
	gregkh@linuxfoundation.org
  Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
	linux-usb@vger.kernel.org

On Mon, 2023-04-10 at 18:26 -0500, Rob Herring wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> Several USB drivers use of_platform_* functions which are declared in
> of_platform.h. of_platform.h gets implicitly included by of_device.h,
> but that is going to be removed soon. Nothing else depends on
> of_device.h
> so it can be dropped.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  drivers/usb/dwc3/dwc3-am62.c           | 2 +-
>  drivers/usb/gadget/udc/rzv2m_usb3drd.c | 2 +-
>  drivers/usb/mtu3/mtu3_host.c           | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-
> am62.c
> index 173cf3579c55..4d674a243784 100644
> --- a/drivers/usb/dwc3/dwc3-am62.c
> +++ b/drivers/usb/dwc3/dwc3-am62.c
> @@ -11,7 +11,7 @@
>  #include <linux/platform_device.h>
>  #include <linux/mfd/syscon.h>
>  #include <linux/of.h>
> -#include <linux/of_device.h>
> +#include <linux/of_platform.h>
>  #include <linux/pm_runtime.h>
>  #include <linux/clk.h>
>  #include <linux/regmap.h>
> diff --git a/drivers/usb/gadget/udc/rzv2m_usb3drd.c
> b/drivers/usb/gadget/udc/rzv2m_usb3drd.c
> index 3c8bbf843038..8aafd1ddf126 100644
> --- a/drivers/usb/gadget/udc/rzv2m_usb3drd.c
> +++ b/drivers/usb/gadget/udc/rzv2m_usb3drd.c
> @@ -6,7 +6,7 @@
>   */
> 
>  #include <linux/io.h>
> -#include <linux/of_device.h>
> +#include <linux/of_platform.h>
>  #include <linux/platform_device.h>
>  #include <linux/pm_runtime.h>
>  #include <linux/reset.h>
> diff --git a/drivers/usb/mtu3/mtu3_host.c
> b/drivers/usb/mtu3/mtu3_host.c
> index f3903367a6a0..177d2caf887c 100644
> --- a/drivers/usb/mtu3/mtu3_host.c
> +++ b/drivers/usb/mtu3/mtu3_host.c
> @@ -11,7 +11,7 @@
>  #include <linux/irq.h>
>  #include <linux/kernel.h>
>  #include <linux/mfd/syscon.h>
> -#include <linux/of_device.h>
> +#include <linux/of_platform.h>
>  #include <linux/regmap.h>
For mtu3 change:

Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com>

Thanks

> 
>  #include "mtu3.h"
> --
> 2.39.2
> 
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2023-04-17  1:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-10 23:26 [PATCH] usb: Add explicit of.h of_platform.h include Rob Herring
2023-04-11  1:16 ` Thinh Nguyen
2023-04-17  1:36 ` Chunfeng Yun (云春峰)

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).