staging: vt6655: mac80211 conversion: device_print_info remove netdevice.
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 29 Oct 2014 17:43:46 +0000 (17:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 20:31:29 +0000 (13:31 -0700)
use dev_info for device name and pcid->irq for irq number.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index b0f94a804cebc14ed4f08dc86bc1c946831d037d..5ece18401ed4276c36a9133a273daf61dfbf1d87 100644 (file)
@@ -809,12 +809,11 @@ static const struct net_device_ops device_netdev_ops = {
 
 static void device_print_info(struct vnt_private *pDevice)
 {
-       struct net_device *dev = pDevice->dev;
+       dev_info(&pDevice->pcid->dev, "%s\n", get_chip_name(pDevice->chip_id));
 
-       pr_info("%s: %s\n", dev->name, get_chip_name(pDevice->chip_id));
-       pr_info("%s: MAC=%pM IO=0x%lx Mem=0x%lx IRQ=%d\n",
-               dev->name, dev->dev_addr, (unsigned long)pDevice->ioaddr,
-               (unsigned long)pDevice->PortOffset, pDevice->dev->irq);
+       dev_info(&pDevice->pcid->dev, "MAC=%pM IO=0x%lx Mem=0x%lx IRQ=%d\n",
+                pDevice->abyCurrentNetAddr, (unsigned long)pDevice->ioaddr,
+                (unsigned long)pDevice->PortOffset, pDevice->pcid->irq);
 }
 
 static void vt6655_init_info(struct pci_dev *pcid,