rtc: pxa: fix probe function
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Jun 2018 08:29:09 +0000 (11:29 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 7 Jun 2018 18:11:08 +0000 (20:11 +0200)
commite4302aec8a0646828a701443e303eb5ef48b37f5
treefca0319e92d3151a844789319d6c51dacfb9acbf
parent8ee4aee5b504e515a986a1415e45c81efaae8df7
rtc: pxa: fix probe function

This patch is from static analysis and I don't have the hardware to
to test it.  I think the test is reversed so now the probe function
will return success early and the last part of the function is dead
code.

Fixes: 3cdf4ad9633e ("rtc: pxa: convert to use shared sa1100 functions")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pxa.c