linux: generic: rtl836*: fix compilation with !CONFIG_OF
[openwrt/staging/chunkeey.git] / target / linux / generic / files / drivers / net / phy / rtl8367.c
index d2d4faab1aa8b91b9c7411b63682f08426a52b09..c6ae6a5efb36420ec196d4f5cbc10db4dad2e160 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>
@@ -1746,7 +1747,9 @@ static struct platform_driver rtl8367_driver = {
        .driver = {
                .name           = RTL8367_DRIVER_NAME,
                .owner          = THIS_MODULE,
+#ifdef CONFIG_OF
                .of_match_table = of_match_ptr(rtl8367_match),
+#endif
        },
        .probe          = rtl8367_probe,
        .remove         = __devexit_p(rtl8367_remove),