705-v6.4-net-phy-at803x-Replace-of_gpio.h-with-what-indeed-is.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From a593a2fcfdfb92cfd0ffc54bc81b07e6bfaaaf46 Mon Sep 17 00:00:00 2001
  2. From: Andy Shevchenko <[email protected]>
  3. Date: Thu, 16 Mar 2023 14:08:26 +0200
  4. Subject: [PATCH] net: phy: at803x: Replace of_gpio.h with what indeed is used
  5. of_gpio.h in this driver is solely used as a proxy to other headers.
  6. This is incorrect usage of the of_gpio.h. Replace it .h with what
  7. indeed is used in the code.
  8. Signed-off-by: Andy Shevchenko <[email protected]>
  9. Reviewed-by: Andrew Lunn <[email protected]>
  10. Signed-off-by: David S. Miller <[email protected]>
  11. ---
  12. drivers/net/phy/at803x.c | 3 +--
  13. 1 file changed, 1 insertion(+), 2 deletions(-)
  14. --- a/drivers/net/phy/at803x.c
  15. +++ b/drivers/net/phy/at803x.c
  16. @@ -13,12 +13,11 @@
  17. #include <linux/netdevice.h>
  18. #include <linux/etherdevice.h>
  19. #include <linux/ethtool_netlink.h>
  20. -#include <linux/of_gpio.h>
  21. #include <linux/bitfield.h>
  22. -#include <linux/gpio/consumer.h>
  23. #include <linux/regulator/of_regulator.h>
  24. #include <linux/regulator/driver.h>
  25. #include <linux/regulator/consumer.h>
  26. +#include <linux/of.h>
  27. #include <linux/phylink.h>
  28. #include <linux/sfp.h>
  29. #include <dt-bindings/net/qca-ar803x.h>