#include <linux/gpio.h>
#include <linux/spinlock.h>
#include <linux/skbuff.h>
+#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/of_gpio.h>
#include <linux/rtl8366.h>
return 0;
}
#else
-static inline int rtl8366_smi_probe_of(struct device_node *np, struct rtl8366_smi *smi)
+static inline int rtl8366_smi_probe_of(struct platform_device *pdev, struct rtl8366_smi *smi)
{
return -ENODEV;
}
#include <linux/phy.h>
#include <linux/switch.h>
+#include <linux/platform_device.h>
struct rtl8366_smi_ops;
struct rtl8366_vlan_ops;
#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>
#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>
.driver = {
.name = RTL8366S_DRIVER_NAME,
.owner = THIS_MODULE,
+#ifdef CONFIG_OF
.of_match_table = of_match_ptr(rtl8366s_match),
+#endif
},
.probe = rtl8366s_probe,
.remove = __devexit_p(rtl8366s_remove),
#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>
.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),
#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>
.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),