serial: tegra: Don't print error on probe deferral
authorJon Hunter <jonathanh@nvidia.com>
Mon, 3 Jul 2023 11:37:59 +0000 (12:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 18:19:39 +0000 (20:19 +0200)
commitad4484afe7de7869248b7c7a8e9722a62cb72bd0
treed16e4d20ca6c6b679fe858c298b3f831cb25518f
parent29e5c442e553cea180682d54ac0e2e95250fa668
serial: tegra: Don't print error on probe deferral

If the Tegra serial driver is probe before clocks are available then the
following error is seen on boot:

 serial-tegra 3100000.serial: Couldn't get the clock

This has been observed on Jetson AGX Orin. Fix this by calling
dev_err_probe() instead of dev_err() to avoid printing an error on probe
deferral.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20230703113759.75608-1-jonathanh@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c