generic: rtl836x: fix compiler warnings

CC      drivers/net/phy/rtl8366rb.o
In file included from drivers/net/phy/rtl8366s.c:16:0:
include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default]
include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
drivers/net/phy/rtl8366s.c: In function 'rtl8366s_probe':
drivers/net/phy/rtl8366s.c:1094:2: warning: label 'err_out' defined but not used [-Wunused-label]
drivers/net/phy/rtl8366s.c:1055:32: warning: unused variable 'pdata'[-Wunused-variable]
  CC      drivers/net/phy/rtl8366rb.o
In file included from drivers/net/phy/rtl8366rb.c:17:0:
include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default]
include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
drivers/net/phy/rtl8366rb.c: In function 'rtl8366rb_probe':
drivers/net/phy/rtl8366rb.c:1214:2: warning: label 'err_out' defined but not used [-Wunused-label]
drivers/net/phy/rtl8366rb.c:1175:32: warning: unused variable 'pdata'[-Wunused-variable]
  CC      drivers/net/phy/rtl8367.o
In file included from drivers/net/phy/rtl8367.c:15:0:
include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default]
include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
drivers/net/phy/rtl8367.c: In function 'rtl8367_probe':
drivers/net/phy/rtl8367.c:1712:2: warning: label 'err_out' defined but not used [-Wunused-label]
drivers/net/phy/rtl8367.c:1677:32: warning: unused variable 'pdata' [-Wunused-variable]
  CC      drivers/net/phy/rtl8367b.o
In file included from drivers/net/phy/rtl8367b.c:15:0:
include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default]
include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
drivers/net/phy/rtl8367b.c: In function 'rtl8367b_probe':
drivers/net/phy/rtl8367b.c:1494:2: warning: label 'err_out' defined but not used [-Wunused-label]
drivers/net/phy/rtl8367b.c:1459:32: warning: unused variable 'pdata' [-Wunused-variable]

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34731
master
Gabor Juhos 12 years ago
parent 61d715505c
commit d153bdbba9
  1. 3
      target/linux/generic/files/drivers/net/phy/rtl8366rb.c
  2. 3
      target/linux/generic/files/drivers/net/phy/rtl8366s.c
  3. 3
      target/linux/generic/files/drivers/net/phy/rtl8367.c
  4. 3
      target/linux/generic/files/drivers/net/phy/rtl8367b.c

@ -13,6 +13,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/device.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/delay.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 __devinit rtl8366rb_probe(struct platform_device *pdev)
{ {
static int rtl8366_smi_version_printed; static int rtl8366_smi_version_printed;
struct rtl8366_platform_data *pdata;
struct rtl8366_smi *smi; struct rtl8366_smi *smi;
int err; int err;
@ -1211,7 +1211,6 @@ static int __devinit rtl8366rb_probe(struct platform_device *pdev)
rtl8366_smi_cleanup(smi); rtl8366_smi_cleanup(smi);
err_free_smi: err_free_smi:
kfree(smi); kfree(smi);
err_out:
return err; return err;
} }

@ -12,6 +12,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/device.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/delay.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 __devinit rtl8366s_probe(struct platform_device *pdev)
{ {
static int rtl8366_smi_version_printed; static int rtl8366_smi_version_printed;
struct rtl8366_platform_data *pdata;
struct rtl8366_smi *smi; struct rtl8366_smi *smi;
int err; int err;
@ -1091,7 +1091,6 @@ static int __devinit rtl8366s_probe(struct platform_device *pdev)
rtl8366_smi_cleanup(smi); rtl8366_smi_cleanup(smi);
err_free_smi: err_free_smi:
kfree(smi); kfree(smi);
err_out:
return err; return err;
} }

@ -11,6 +11,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/device.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/delay.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) static int __devinit rtl8367_probe(struct platform_device *pdev)
{ {
struct rtl8367_platform_data *pdata;
struct rtl8366_smi *smi; struct rtl8366_smi *smi;
int err; int err;
@ -1709,7 +1709,6 @@ static int __devinit rtl8367_probe(struct platform_device *pdev)
rtl8366_smi_cleanup(smi); rtl8366_smi_cleanup(smi);
err_free_smi: err_free_smi:
kfree(smi); kfree(smi);
err_out:
return err; return err;
} }

@ -11,6 +11,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/device.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/delay.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) static int __devinit rtl8367b_probe(struct platform_device *pdev)
{ {
struct rtl8367_platform_data *pdata;
struct rtl8366_smi *smi; struct rtl8366_smi *smi;
int err; int err;
@ -1491,7 +1491,6 @@ static int __devinit rtl8367b_probe(struct platform_device *pdev)
rtl8366_smi_cleanup(smi); rtl8366_smi_cleanup(smi);
err_free_smi: err_free_smi:
kfree(smi); kfree(smi);
err_out:
return err; return err;
} }

Loading…
Cancel
Save