[PATCH 5/8] realtek: add missing of.h include in phy driver

Sander Vanheule sander at svanheule.net
Thu Oct 6 13:56:30 PDT 2022


From: INAGAKI Hiroshi <musashino.open at gmail.com>

of.h is required for of_property_read_u32().

Signed-off-by: INAGAKI Hiroshi <musashino.open at gmail.com>
[amend commit message]
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
 target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c b/target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c
index 259458b1beef..491ceb48b6a0 100644
--- a/target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c
+++ b/target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c
@@ -6,6 +6,7 @@
 
 #include <linux/module.h>
 #include <linux/delay.h>
+#include <linux/of.h>
 #include <linux/phy.h>
 #include <linux/netdevice.h>
 #include <linux/firmware.h>
-- 
2.37.3




More information about the openwrt-devel mailing list