nfc: pn533: use dev_err() instead of pr_err()
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 13 Sep 2021 13:20:26 +0000 (15:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Sep 2021 13:38:00 +0000 (14:38 +0100)
Print error message with reference to a device.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/pn533/pn533.c

index c5f127fe2d45d9bd8c7365e915239734707cb060..da180335422c84db519f23ad584724fa6a58cc5d 100644 (file)
@@ -2171,7 +2171,7 @@ void pn533_recv_frame(struct pn533 *dev, struct sk_buff *skb, int status)
        }
 
        if (skb == NULL) {
-               pr_err("NULL Frame -> link is dead\n");
+               dev_err(dev->dev, "NULL Frame -> link is dead\n");
                goto sched_wq;
        }