]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/of_spi.h
tty: Make vt's have a tty_port
[karo-tx-linux.git] / include / linux / of_spi.h
index 5f71ee8c0868d6d549ded2ca2ffbbfa837160584..9e3e70f78ae64c4077917d330923d9868e290cfc 100644 (file)
@@ -9,10 +9,15 @@
 #ifndef __LINUX_OF_SPI_H
 #define __LINUX_OF_SPI_H
 
-#include <linux/of.h>
 #include <linux/spi/spi.h>
 
-extern void of_register_spi_devices(struct spi_master *master,
-                                   struct device_node *np);
+#if defined(CONFIG_OF_SPI) || defined(CONFIG_OF_SPI_MODULE)
+extern void of_register_spi_devices(struct spi_master *master);
+#else
+static inline void of_register_spi_devices(struct spi_master *master)
+{
+       return;
+}
+#endif /* CONFIG_OF_SPI */
 
 #endif /* __LINUX_OF_SPI */