summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-02-09 00:16:13 +0000
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-02-12 00:34:31 +0100
commitaaa65a9ce685fcdf37d647ec1ef5afeb3d02c916 (patch)
tree448605e52ece7821ce5b21816e27ac781322c83f /Documentation
parent93946c49cdafd6a2e4039a8208564fd18e9120c3 (diff)
downloadlinux-aaa65a9ce685fcdf37d647ec1ef5afeb3d02c916.tar.gz
linux-aaa65a9ce685fcdf37d647ec1ef5afeb3d02c916.tar.xz
rtc: sun6i: Fix return value check in sun6i_rtc_clk_init()
In case of error, the function of_io_request_and_map() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 847b8bf62eb4 ("rtc: sun6i: Expose the 32kHz oscillator") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions