rtc: isl12026: fixup nvmem registration
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 2 Mar 2018 23:50:29 +0000 (00:50 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 17 Mar 2018 13:20:51 +0000 (14:20 +0100)
commit6735f6dcf71e722ee2fc4fb38ed14ae0e2c119b4
tree5da92ceff3afec80a46e83895b958ace2ac555d4
parent4731a43169b799a9b4337579793a24fcc85943f5
rtc: isl12026: fixup nvmem registration

The probe function must not fail after rtc_register_device. Also, rename
the nvmem device so it is easily identifiable in /sys/bus/nvmem.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl12026.c