diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2021-01-14 11:22:18 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-01-16 23:19:12 +0100 |
commit | 7db7ad0817fe7d3c6fcbd9402deb7509b2851f06 (patch) | |
tree | d7fe3eaea79a0dd4bf70f094940c0e55781f67a1 /drivers/rtc/interface.c | |
parent | 1f0cbda3b452b520c5f3794f8f0e410e8bc7386a (diff) |
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
Diffstat (limited to 'drivers/rtc/interface.c')
0 files changed, 0 insertions, 0 deletions