i2c: cadence: Simplify with dev_err_probe()
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 2 Sep 2020 15:06:38 +0000 (17:06 +0200)
committerWolfram Sang <wsa@kernel.org>
Wed, 23 Jun 2021 16:22:28 +0000 (18:22 +0200)
commit2d1a83a4f36f1a6fd8c510db409772e34bf4eed1
tree6ae26dd388c15f4e4ca554cb5d6041fb6bcaf231
parent9dbba3f87c7823cf35e63fb7a2449a5d54b3b799
i2c: cadence: 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>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-cadence.c