rtc: bq4802: add error handling for devm_ioremap
authorZhouyang Jia <jiazhouyang09@gmail.com>
Tue, 12 Jun 2018 04:40:03 +0000 (12:40 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 11 Jul 2018 18:41:01 +0000 (20:41 +0200)
commit7874b919866ba91bac253fa219d3d4c82bb944df
tree0772e33b396510ae0d2a64b5e14c460bf071573b
parenta41efe03e6110d7d85db272290aeed7e1ce9b63b
rtc: bq4802: add error handling for devm_ioremap

When devm_ioremap fails, the lack of error-handling code may
cause unexpected results.

This patch adds error-handling code after calling devm_ioremap.

Signed-off-by: Zhouyang Jia <jiazhouyang09@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-bq4802.c