Re: [PATCH] usb: host: ehci-atmel: Use dev_dbg() for debug messages
From: Alexander Dahl
Date: Wed Oct 14 2026 - 10:48:04 EST
Hello Mihai,
Am Wed, Oct 14, 2026 at 03:16:56PM +0300 schrieb Mihai Sain:
> Use dev_dbg() instead of pr_debug() in the probe function
> to provide a more specific device message.
> This ensures the log message is properly associated with
> the corresponding platform device instance.
>
> Signed-off-by: Mihai Sain <mihai.sain@xxxxxxxxxxxxx>
> ---
> drivers/usb/host/ehci-atmel.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c
> index 65747270fd88..b6ba7005be69 100644
> --- a/drivers/usb/host/ehci-atmel.c
> +++ b/drivers/usb/host/ehci-atmel.c
> @@ -99,7 +99,7 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
> if (usb_disabled())
> return -ENODEV;
>
> - pr_debug("Initializing Atmel-SoC USB Host Controller\n");
> + dev_dbg(&pdev->dev, "Initializing Atmel-SoC USB Host Controller\n");
>
> irq = platform_get_irq(pdev, 0);
> if (irq < 0) {
Reviewed-by: Alexander Dahl <ada@xxxxxxxxxxx>
Greets
Alex