]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: m41t80: return NULL rather than a plain 0 integer
authorColin Ian King <colin.king@canonical.com>
Sat, 25 Sep 2021 22:34:41 +0000 (23:34 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 1 Oct 2021 21:31:29 +0000 (23:31 +0200)
commitfe6563a9c93adba34490d28447ec3d18e7c390cd
tree67e8322dd036d3a5c53ecd221bfac83e20cad9e7
parent5ed0fff3e54f861ff8e8df5f4b8311babaa9e347
rtc: m41t80: return NULL rather than a plain 0 integer

Function m41t80_sqw_register_clk returns a pointer to struct clk,
so returning a plain 0 integer isn't good practice. Fix this by
returning a NULL instead.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210925223441.182673-1-colin.king@canonical.com
drivers/rtc/rtc-m41t80.c