static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
{
- struct mii_ioctl_data *data = (struct mii_ioctl_data *)&rq->ifr_data;
- struct netdev_private *np = dev->priv;
+ struct mii_ioctl_data *data = if_mii(rq);
+ struct netdev_private *np = netdev_priv(dev);
switch(cmd) {
case SIOCGMIIPHY: /* Get address of MII PHY in use. */
static int __init w840_init(void)
{
-/* when a module, this is printed whether or not devices are found in probe */
-#ifdef MODULE
printk(version);
-#endif
return pci_module_init(&w840_driver);
}