* 02110-1301, USA.
*/
-#include <linux/config.h>
+#include <linux/autoconf.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/if.h>
return 0;
}
+/*
static void robo_read(__u8 page, __u8 reg, __u16 *val, int count)
{
int i;
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)
{
}
/* 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;
static int robo_probe(char *devname)
{
- struct ethtool_drvinfo info;
- int i;
__u32 phyid;
printk("Probing device %s: ", devname);
return 1;
}
- info.cmd = ETHTOOL_GDRVINFO;
- if (do_ioctl(SIOCETHTOOL, (void *) &info) < 0) {
- printk("SIOCETHTOOL: not supported\n");
- return 1;
- }
-
/* try access using MII ioctls - get phy address */
if (do_ioctl(SIOCGMIIPHY, NULL) < 0) {
use_et = 1;
}
}
+ buf[len] = '\0';
+
return len;
}
return 0;
}
-static int __init robo_init()
+static int __init robo_init(void)
{
int notfound = 1;
}
}
-static void __exit robo_exit()
+static void __exit robo_exit(void)
{
switch_unregister_driver(DRIVER_NAME);
kfree(device);