OSDN Git Service

rtc: mrst: fix error code in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Jun 2018 12:03:02 +0000 (15:03 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 20 Jun 2018 10:43:11 +0000 (12:43 +0200)
commitca95ef7c98674a8eb5d411fc0835783051c0662b
treeb2d03687874328d3d9a8fa3716b1d5207b76da10
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
rtc: mrst: fix error code in probe()

We should be returning "retval".  The "mrst_rtc.rtc" variable is a valid
pointer.

Fixes: 32b41f93dcaf ("rtc: mrst: switch to devm functions")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-mrst.c