diff mbox series

[v1,5/5] spi: pxa2xx: Replace of_device.h with mod_devicetable.h and of.h

Message ID 20191018105429.82782-5-andriy.shevchenko@linux.intel.com (mailing list archive)
State Accepted
Commit ae8fbf1d2403bc187a5d8fe82fbf2205d89cdb60
Headers show
Series [v1,1/5] spi: pxa2xx: No need to keep pointer to platform device | expand

Commit Message

Andy Shevchenko Oct. 18, 2019, 10:54 a.m. UTC
There is nothing in use from of_device.h. The definitions and macros
are available thru mod_devicetable.h and of.h.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/spi/spi-pxa2xx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 684a5585ac7f..443c1f4d2a9a 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -18,7 +18,8 @@ 
 #include <linux/ioport.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/mod_devicetable.h>
+#include <linux/of.h>
 #include <linux/pci.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>