This change is inspired by checkpatch.
Signed-off-by: Weilong Chen <chenweilong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
 
        if (!ops || !ops->xmit || !ops->ed || !ops->start ||
            !ops->stop || !ops->set_channel) {
-               printk(KERN_ERR
-                      "undefined IEEE802.15.4 device operations\n");
+               pr_err("undefined IEEE802.15.4 device operations\n");
                return NULL;
        }
 
 
        phy = wpan_phy_alloc(priv_size);
        if (!phy) {
-               printk(KERN_ERR
-                      "failure to allocate master IEEE802.15.4 device\n");
+               pr_err("failure to allocate master IEEE802.15.4 device\n");
                return NULL;
        }