[PATCH 4/6] wifi: wilc1000: Use device-specific error logging

From: Mihai Sain

Date: Mon Nov 23 2026 - 08:42:43 EST


Use dev_err() instead of pr_err() when reporting a failure to
retrieve the MAC address from the chip.

This associates the error message with the SDIO device, making
it easier to identify the source of the error in kernel logs.

Signed-off-by: Mihai Sain <mihai.sain@xxxxxxxxxxxxx>
---
drivers/net/wireless/microchip/wilc1000/sdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/microchip/wilc1000/sdio.c b/drivers/net/wireless/microchip/wilc1000/sdio.c
index 67dea1360f0a..a328e1b6f5de 100644
--- a/drivers/net/wireless/microchip/wilc1000/sdio.c
+++ b/drivers/net/wireless/microchip/wilc1000/sdio.c
@@ -192,7 +192,7 @@ static int wilc_sdio_probe(struct sdio_func *func,

ret = wilc_load_mac_from_nv(wilc);
if (ret) {
- pr_err("Can not retrieve MAC address from chip\n");
+ dev_err(&func->dev, "Can not retrieve MAC address from chip\n");
goto unregister_wiphy;
}

--
2.56.1