diff options
Diffstat (limited to 'drivers/net/usb/rtl8150.c')
-rw-r--r-- | drivers/net/usb/rtl8150.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c index 0e2c92e0e532..5f39a3b225ef 100644 --- a/drivers/net/usb/rtl8150.c +++ b/drivers/net/usb/rtl8150.c | |||
@@ -275,7 +275,7 @@ static int rtl8150_set_mac_address(struct net_device *netdev, void *p) | |||
275 | return -EBUSY; | 275 | return -EBUSY; |
276 | 276 | ||
277 | memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); | 277 | memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); |
278 | dbg("%s: Setting MAC address to %pM\n", netdev->name, netdev->dev_addr); | 278 | netdev_dbg(netdev, "Setting MAC address to %pM\n", netdev->dev_addr); |
279 | /* Set the IDR registers. */ | 279 | /* Set the IDR registers. */ |
280 | set_registers(dev, IDR, netdev->addr_len, netdev->dev_addr); | 280 | set_registers(dev, IDR, netdev->addr_len, netdev->dev_addr); |
281 | #ifdef EEPROM_WRITE | 281 | #ifdef EEPROM_WRITE |
@@ -503,12 +503,12 @@ static void intr_callback(struct urb *urb) | |||
503 | if ((d[INT_MSR] & MSR_LINK) == 0) { | 503 | if ((d[INT_MSR] & MSR_LINK) == 0) { |
504 | if (netif_carrier_ok(dev->netdev)) { | 504 | if (netif_carrier_ok(dev->netdev)) { |
505 | netif_carrier_off(dev->netdev); | 505 | netif_carrier_off(dev->netdev); |
506 | dbg("%s: LINK LOST\n", __func__); | 506 | netdev_dbg(dev->netdev, "%s: LINK LOST\n", __func__); |
507 | } | 507 | } |
508 | } else { | 508 | } else { |
509 | if (!netif_carrier_ok(dev->netdev)) { | 509 | if (!netif_carrier_ok(dev->netdev)) { |
510 | netif_carrier_on(dev->netdev); | 510 | netif_carrier_on(dev->netdev); |
511 | dbg("%s: LINK CAME BACK\n", __func__); | 511 | netdev_dbg(dev->netdev, "%s: LINK CAME BACK\n", __func__); |
512 | } | 512 | } |
513 | } | 513 | } |
514 | 514 | ||