]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: dwapb: Don't print error on -EPROBE_DEFER
authorBaikal Electronics <support@baikalelectronics.ru>
Fri, 10 Jun 2022 10:45:00 +0000 (13:45 +0300)
committerBartosz Golaszewski <brgl@bgdev.pl>
Fri, 10 Jun 2022 12:26:15 +0000 (14:26 +0200)
commite55d04966d3e86b0af66b4d24228c58960c8225e
treefd61c68597d24704c509f35886a089ef6c9ae07d
parent98a7347e47ea95e29f43a429a60e5183e3d49b10
gpio: dwapb: Don't print error on -EPROBE_DEFER

Currently if the APB or Debounce clocks aren't yet ready to be requested
the DW GPIO driver will correctly handle that by deferring the probe
procedure, but the error is still printed to the system log. It needlessly
pollutes the log since there was no real error but a request to postpone
the clock request procedure since the clocks subsystem hasn't been fully
initialized yet. Let's fix that by using the dev_err_probe method to print
the APB/clock request error status. It will correctly handle the deferred
probe situation and print the error if it actually happens.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-dwapb.c