7cacb71b182764d7982678c1e536d7b676dd076f
[openwrt/staging/neocturne.git] /
1 From a593a2fcfdfb92cfd0ffc54bc81b07e6bfaaaf46 Mon Sep 17 00:00:00 2001
2 From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
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
6 of_gpio.h in this driver is solely used as a proxy to other headers.
7 This is incorrect usage of the of_gpio.h. Replace it .h with what
8 indeed is used in the code.
9
10 Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
11 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 ---
14 drivers/net/phy/at803x.c | 3 +--
15 1 file changed, 1 insertion(+), 2 deletions(-)
16
17 --- a/drivers/net/phy/at803x.c
18 +++ b/drivers/net/phy/at803x.c
19 @@ -13,12 +13,11 @@
20 #include <linux/netdevice.h>
21 #include <linux/etherdevice.h>
22 #include <linux/ethtool_netlink.h>
23 -#include <linux/of_gpio.h>
24 #include <linux/bitfield.h>
25 -#include <linux/gpio/consumer.h>
26 #include <linux/regulator/of_regulator.h>
27 #include <linux/regulator/driver.h>
28 #include <linux/regulator/consumer.h>
29 +#include <linux/of.h>
30 #include <linux/phylink.h>
31 #include <linux/sfp.h>
32 #include <dt-bindings/net/qca-ar803x.h>