linux: generic: rtl836*: fix compilation with !CONFIG_OF
[openwrt/openwrt.git] / target / linux / generic / files / drivers / net / phy / rtl8367b.c
index 2fbd11eda5324a891d8f2cf4050063610e756e45..5bd6f407f55d514a5ddc1a7730d4cb56b953bba7 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/delay.h>
 #include <linux/skbuff.h>
@@ -1528,7 +1529,9 @@ static struct platform_driver rtl8367b_driver = {
        .driver = {
                .name           = RTL8367B_DRIVER_NAME,
                .owner          = THIS_MODULE,
+#ifdef CONFIG_OF
                .of_match_table = of_match_ptr(rtl8367b_match),
+#endif
        },
        .probe          = rtl8367b_probe,
        .remove         = __devexit_p(rtl8367b_remove),