Include <linux/of.h> instead of <linux/of_device.h>. This problem arised when adding support for 6.12, but it can be fixed on older kernels too. Signed-off-by: Álvaro Fernández Rojas <[email protected]>
@@ -8,7 +8,7 @@
#include <linux/delay.h>
#include <linux/leds.h>
#include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
#include <linux/spi/spi.h>
#include "leds.h"