]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
USB: at76c50x-usb.c: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:52 +0000 (14:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:52 +0000 (14:48 -0700)
err() was a very old USB-specific macro that I thought had
gone away.  This patch removes it from being used in the
driver and uses dev_err() instead.

CC: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/at76c50x-usb.c

index 4045e5ab0555a3cbd2f55b1aa0e413a137f6f7f0..cc741b3cc0247e580ca8df73b29d7014482689b0 100644 (file)
@@ -1955,7 +1955,7 @@ static int at76_hw_scan(struct ieee80211_hw *hw,
        ret = at76_set_card_command(priv->udev, CMD_SCAN, &scan, sizeof(scan));
 
        if (ret < 0) {
-               err("CMD_SCAN failed: %d", ret);
+               wiphy_err(priv->hw->wiphy, "CMD_SCAN failed: %d\n", ret);
                goto exit;
        }