aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-11 13:14:00 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-11 13:14:00 +0000
commitda364b7741466248d34f9d54d2431d11bf6d0b1b (patch)
tree691d94b9534bef270d42df96a733c363608c1210 /target/linux/generic
parentde9ca731439685de05f210ee06aef226b98c73ee (diff)
downloadupstream-da364b7741466248d34f9d54d2431d11bf6d0b1b.tar.gz
upstream-da364b7741466248d34f9d54d2431d11bf6d0b1b.tar.bz2
upstream-da364b7741466248d34f9d54d2431d11bf6d0b1b.zip
generic: ar8216: use pr_* macros for kernel messages
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35554 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index c4631080e8..a34a749f2a 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -794,18 +794,18 @@ ar8316_hw_init(struct ar8216_priv *priv)
if (priv->port4_phy) {
/* value taken from Ubiquiti RouterStation Pro */
newval = 0x81461bea;
- printk(KERN_INFO "ar8316: Using port 4 as PHY\n");
+ pr_info("ar8316: Using port 4 as PHY\n");
} else {
newval = 0x01261be2;
- printk(KERN_INFO "ar8316: Using port 4 as switch port\n");
+ pr_info("ar8316: Using port 4 as switch port\n");
}
} else if (priv->phy->interface == PHY_INTERFACE_MODE_GMII) {
/* value taken from AVM Fritz!Box 7390 sources */
newval = 0x010e5b71;
} else {
/* no known value for phy interface */
- printk(KERN_ERR "ar8316: unsupported mii mode: %d.\n",
- priv->phy->interface);
+ pr_err("ar8316: unsupported mii mode: %d.\n",
+ priv->phy->interface);
return -EINVAL;
}
@@ -1689,9 +1689,8 @@ ar8216_id_chip(struct ar8216_priv *priv)
priv->chip = &ar8327_chip;
break;
default:
- printk(KERN_DEBUG
- "ar8216: Unknown Atheros device [ver=%d, rev=%d]\n",
- priv->chip_ver, priv->chip_rev);
+ pr_err("ar8216: Unknown Atheros device [ver=%d, rev=%d]\n",
+ priv->chip_ver, priv->chip_rev);
return -ENODEV;
}
@@ -1900,7 +1899,7 @@ ar8216_config_init(struct phy_device *pdev)
if (ret)
goto err_free_priv;
- printk(KERN_INFO "%s: %s switch driver attached.\n",
+ pr_info("%s: %s switch driver attached.\n",
pdev->attached_dev->name, swdev->name);
priv->init = true;