rtc: isl12026: convert to i2c_new_dummy_device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 22 Jul 2019 17:26:15 +0000 (19:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 22 Jul 2019 20:30:19 +0000 (22:30 +0200)
commit46eabee1f6e6495ea465d7ad8bb971c40ba4dc9e
tree7e978c6c72ae247d293aebfc69bcd0eecdb17c13
parent564225415e7791f809122d8d16f089d276686bda
rtc: isl12026: convert to i2c_new_dummy_device

Move from i2c_new_dummy() to i2c_new_dummy_device(), so we now get an
ERRPTR which we use in error handling.

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