[openwrt/openwrt] generic: add missing of.h header to ar8327
LEDE Commits
lede-commits at lists.infradead.org
Fri Apr 11 11:34:48 PDT 2025
ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/0b5650f76783b215a6bfa22bde45973474a0d04f
commit 0b5650f76783b215a6bfa22bde45973474a0d04f
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Fri Apr 11 11:38:55 2025 +0200
generic: add missing of.h header to ar8327
It seems new kernel linux version reorganized the header include and now
of.h needs to be explicitly included. This should have been done from
when the driver was introduced.
Add the missing of.h header to fix compilation error in later kernel
version.
Co-authored-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
Signed-off-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18455
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
target/linux/generic/files/drivers/net/phy/ar8327.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.c b/target/linux/generic/files/drivers/net/phy/ar8327.c
index cf9c2dc3c1..ff9ff5df3c 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8327.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8327.c
@@ -23,6 +23,7 @@
#include <linux/lockdep.h>
#include <linux/ar8216_platform.h>
#include <linux/workqueue.h>
+#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/leds.h>
#include <linux/mdio.h>
More information about the lede-commits
mailing list