This patch removes the pr_* functions and replace it with the dev_*
print functions.

Signed-off-by: Alexander Aring <alex.ar...@gmail.com>
---
 drivers/net/ieee802154/at86rf230.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ieee802154/at86rf230.c 
b/drivers/net/ieee802154/at86rf230.c
index e8004ef..df290a5 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -557,11 +557,12 @@ at86rf230_state(struct ieee802154_dev *dev, int state)
            (desired_status == STATE_RX_AACK_ON && val == STATE_BUSY_RX_AACK))
                return 0;
 
-       pr_err("unexpected state change: %d, asked for %d\n", val, state);
+       dev_err(&lp->spi->dev, "unexpected state change: %d, asked for %d\n",
+               val, state);
        return -EBUSY;
 
 err:
-       pr_err("error: %d\n", rc);
+       dev_err(&lp->spi->dev, "error: %d\n", rc);
        return rc;
 }
 
@@ -699,7 +700,7 @@ at86rf230_xmit(struct ieee802154_dev *dev, struct sk_buff 
*skb)
 err_rx:
        at86rf230_start(dev);
 err:
-       pr_err("error: %d\n", rc);
+       dev_err(&lp->spi->dev, "error: %d\n", rc);
 
        spin_lock_irqsave(&lp->lock, flags);
        lp->is_tx = 0;
@@ -732,7 +733,7 @@ static int at86rf230_rx(struct at86rf230_local *lp)
 
        return 0;
 err:
-       pr_debug("received frame is too small\n");
+       dev_dbg(&lp->spi->dev, "received frame is too small\n");
 
        kfree_skb(skb);
        return -EINVAL;
-- 
1.9.1


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to