diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-01-06 10:57:11 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-01-17 01:50:34 +0300 |
commit | 5ceee540fdc7f1d65ca6e2b1b193ce5aa95ab99c (patch) | |
tree | 7c25b3d731341cbc0c00aebcb75710fc46349f55 /arch/powerpc/boot | |
parent | ff164ae39b82ee483b24579c8e22a13a8ce5bd04 (diff) | |
download | linux-5ceee540fdc7f1d65ca6e2b1b193ce5aa95ab99c.tar.xz |
rtc: sunplus: fix return value in sp_rtc_probe()
If devm_ioremap_resource() fails, it should return error
code from sp_rtc->reg_base in sp_rtc_probe().
Fixes: fad6cbe9b2b4 ("rtc: Add driver for RTC in Sunplus SP7021")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220106075711.3216468-1-yangyingliang@huawei.com
Diffstat (limited to 'arch/powerpc/boot')
0 files changed, 0 insertions, 0 deletions