rtc: s5m: use devm_i2c_new_dummy_device()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 14 Jan 2021 10:22:18 +0000 (11:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 16 Jan 2021 22:19:12 +0000 (23:19 +0100)
commit7db7ad0817fe7d3c6fcbd9402deb7509b2851f06
treed7fe3eaea79a0dd4bf70f094940c0e55781f67a1
parent1f0cbda3b452b520c5f3794f8f0e410e8bc7386a
rtc: s5m: use devm_i2c_new_dummy_device()

Use the managed variant of i2c_new_dummy_device() to shrink code and
remove the goto label. We can drop the remove callback now too.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210114102219.23682-3-brgl@bgdev.pl
drivers/rtc/rtc-s5m.c