]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
generic: add missing of.h header to ar8327
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 11 Apr 2025 09:38:55 +0000 (11:38 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 11 Apr 2025 18:34:24 +0000 (20:34 +0200)
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@yahoo.com>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18455
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/generic/files/drivers/net/phy/ar8327.c

index cf9c2dc3c1604564ef17a2a4b0851a6ad6991ce4..ff9ff5df3c3e8be497bdc07f9d12ace2e3d8e041 100644 (file)
@@ -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>