From: Krzysztof Kozlowski Date: Mon, 13 Sep 2021 13:20:26 +0000 (+0200) Subject: nfc: pn533: use dev_err() instead of pr_err() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9981ab2151226d5be03b220142e383a1bd91daf2;p=linux.git nfc: pn533: use dev_err() instead of pr_err() Print error message with reference to a device. Signed-off-by: Krzysztof Kozlowski Signed-off-by: David S. Miller --- diff --git a/drivers/nfc/pn533/pn533.c b/drivers/nfc/pn533/pn533.c index c5f127fe2d45d..da180335422c8 100644 --- a/drivers/nfc/pn533/pn533.c +++ b/drivers/nfc/pn533/pn533.c @@ -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; }