]> Pileus Git - ~andy/linux/blobdiff - drivers/net/phy/national.c
Merge tag 'writeback-proportions' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / drivers / net / phy / national.c
index 04bb8fcc0cb5dd2c069518270af8e9ca1f7c74e1..9a5f234d95b05189cfed229a03164dba2adbc486 100644 (file)
@@ -15,6 +15,8 @@
  *
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/mii.h>
@@ -22,6 +24,8 @@
 #include <linux/phy.h>
 #include <linux/netdevice.h>
 
+#define DEBUG
+
 /* DP83865 phy identifier values */
 #define DP83865_PHY_ID 0x20005c7a
 
@@ -112,8 +116,8 @@ static void ns_10_base_t_hdx_loopack(struct phy_device *phydev, int disable)
                ns_exp_write(phydev, 0x1c0,
                             ns_exp_read(phydev, 0x1c0) & 0xfffe);
 
-       printk(KERN_DEBUG "DP83865 PHY: 10BASE-T HDX loopback %s\n",
-              (ns_exp_read(phydev, 0x1c0) & 0x0001) ? "off" : "on");
+       pr_debug("10BASE-T HDX loopback %s\n",
+                (ns_exp_read(phydev, 0x1c0) & 0x0001) ? "off" : "on");
 }
 
 static int ns_config_init(struct phy_device *phydev)