diff options
author | Nicolas Thill <nico@openwrt.org> | 2006-06-19 02:05:27 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2006-06-19 02:05:27 +0000 |
commit | d30fb9057e97bc9b29d31911643c801fac94c47f (patch) | |
tree | 2945c0d1225ca5593d29263c048d78fbaeebb89b /package/switch/src/switch-robo.c | |
parent | d72ac292bd5374000239f967ee9d0aaa974b4a73 (diff) | |
download | master-187ad058-d30fb9057e97bc9b29d31911643c801fac94c47f.tar.gz master-187ad058-d30fb9057e97bc9b29d31911643c801fac94c47f.tar.bz2 master-187ad058-d30fb9057e97bc9b29d31911643c801fac94c47f.zip |
fix module params on 2.6.17, suppress warnings.
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4005 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src/switch-robo.c')
-rw-r--r-- | package/switch/src/switch-robo.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c index eb93f4b98d..32cf2b3960 100644 --- a/package/switch/src/switch-robo.c +++ b/package/switch/src/switch-robo.c @@ -162,6 +162,7 @@ static int robo_reg(__u8 page, __u8 reg, __u8 op) return 0; } +/* static void robo_read(__u8 page, __u8 reg, __u16 *val, int count) { int i; @@ -171,6 +172,7 @@ static void robo_read(__u8 page, __u8 reg, __u16 *val, int count) for (i = 0; i < count; i++) val[i] = mdio_read(ROBO_PHY_ADDR, REG_MII_DATA0 + i); } +*/ static __u16 robo_read16(__u8 page, __u8 reg) { @@ -205,7 +207,7 @@ static void robo_write32(__u8 page, __u8 reg, __u32 val32) } /* checks that attached switch is 5325E/5350 */ -static int robo_vlan5350() +static int robo_vlan5350(void) { /* set vlan access id to 15 and read it back */ __u16 val16 = 15; @@ -220,7 +222,9 @@ static int robo_vlan5350() static int robo_probe(char *devname) { struct ethtool_drvinfo info; +/* int i; +*/ __u32 phyid; printk("Probing device %s: ", devname); @@ -426,7 +430,7 @@ static int handle_reset(void *driver, char *buf, int nr) return 0; } -static int __init robo_init() +static int __init robo_init(void) { int notfound = 1; @@ -466,7 +470,7 @@ static int __init robo_init() } } -static void __exit robo_exit() +static void __exit robo_exit(void) { switch_unregister_driver(DRIVER_NAME); kfree(device); |