summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366rb.c3
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366s.c3
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8367.c3
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8367b.c3
4 files changed, 4 insertions, 8 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
index d7c39c6..ee61a56 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
@@ -13,6 +13,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
+#include <linux/device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/delay.h>
@@ -1172,7 +1173,6 @@ static struct rtl8366_smi_ops rtl8366rb_smi_ops = {
static int __devinit rtl8366rb_probe(struct platform_device *pdev)
{
static int rtl8366_smi_version_printed;
- struct rtl8366_platform_data *pdata;
struct rtl8366_smi *smi;
int err;
@@ -1211,7 +1211,6 @@ static int __devinit rtl8366rb_probe(struct platform_device *pdev)
rtl8366_smi_cleanup(smi);
err_free_smi:
kfree(smi);
- err_out:
return err;
}
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
index 42b1939..7d0de7c 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
@@ -12,6 +12,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
+#include <linux/device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/delay.h>
@@ -1052,7 +1053,6 @@ static struct rtl8366_smi_ops rtl8366s_smi_ops = {
static int __devinit rtl8366s_probe(struct platform_device *pdev)
{
static int rtl8366_smi_version_printed;
- struct rtl8366_platform_data *pdata;
struct rtl8366_smi *smi;
int err;
@@ -1091,7 +1091,6 @@ static int __devinit rtl8366s_probe(struct platform_device *pdev)
rtl8366_smi_cleanup(smi);
err_free_smi:
kfree(smi);
- err_out:
return err;
}
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367.c b/target/linux/generic/files/drivers/net/phy/rtl8367.c
index c6ae6a5..b225e67 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8367.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8367.c
@@ -11,6 +11,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
+#include <linux/device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/delay.h>
@@ -1674,7 +1675,6 @@ static struct rtl8366_smi_ops rtl8367_smi_ops = {
static int __devinit rtl8367_probe(struct platform_device *pdev)
{
- struct rtl8367_platform_data *pdata;
struct rtl8366_smi *smi;
int err;
@@ -1709,7 +1709,6 @@ static int __devinit rtl8367_probe(struct platform_device *pdev)
rtl8366_smi_cleanup(smi);
err_free_smi:
kfree(smi);
- err_out:
return err;
}
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367b.c b/target/linux/generic/files/drivers/net/phy/rtl8367b.c
index 5bd6f40..8d43c3e 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8367b.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8367b.c
@@ -11,6 +11,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
+#include <linux/device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/delay.h>
@@ -1456,7 +1457,6 @@ static struct rtl8366_smi_ops rtl8367b_smi_ops = {
static int __devinit rtl8367b_probe(struct platform_device *pdev)
{
- struct rtl8367_platform_data *pdata;
struct rtl8366_smi *smi;
int err;
@@ -1491,7 +1491,6 @@ static int __devinit rtl8367b_probe(struct platform_device *pdev)
rtl8366_smi_cleanup(smi);
err_free_smi:
kfree(smi);
- err_out:
return err;
}