interconnect: core: Simplify with dev_err_probe()
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 2 Sep 2020 17:24:32 +0000 (19:24 +0200)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Fri, 18 Sep 2020 06:53:57 +0000 (09:53 +0300)
commit392da338b25e5a7d87929db22e93cb4aaf0251fe
tree6df09efd000353aebf45e7be4e90c7905859375d
parent628fdbcf9d665ab68f5493936ca23383a5844ff7
interconnect: core: Simplify with dev_err_probe()

Common pattern of handling deferred probe can be simplified with
dev_err_probe().  Less code and the error value gets printed.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200902172433.1138-1-krzk@kernel.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/core.c