mfd: rk808: Use dev_err_probe
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 4 May 2023 17:36:07 +0000 (19:36 +0200)
committerLee Jones <lee@kernel.org>
Mon, 15 May 2023 15:17:58 +0000 (16:17 +0100)
commite714b50bdf3cf45076c601276e9e3da00ea05319
treee98a3ed3349462295deb66e664757c484993eb88
parent4fec8a5a85c495851007084e632b7f3f87cb7bdb
mfd: rk808: Use dev_err_probe

Use dev_err_probe instead of dev_err in probe function,
which simplifies code a little bit and prints the error
code.

Also drop possibly incorrect printing of chip id registers
while touching the error message.

Tested-by: Diederik de Haas <didi.debian@cknow.org> # Rock64, Quartz64 Model A + B
Tested-by: Vincent Legoll <vincent.legoll@gmail.com> # Pine64 QuartzPro64
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230504173618.142075-4-sebastian.reichel@collabora.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/rk808.c