rtc: s35390a: convert to devm_i2c_new_dummy_device()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 30 Aug 2019 13:31:24 +0000 (15:31 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 1 Sep 2019 07:18:35 +0000 (09:18 +0200)
commit4053e74996b81902b2dd538717b4fd2fc1426d8b
tree8302eed7addf0494a559636851744bd3f4e57cbf
parent59a7f24fceb3aef6bd16f5aeb852c823dddab04d
rtc: s35390a: convert to devm_i2c_new_dummy_device()

I was about to simplify the call to i2c_unregister_device() when I
realized that converting to devm_i2c_new_dummy_device() will simplify
the driver a lot. So I took this approach.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20190830133124.21633-3-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-s35390a.c