]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: mxc: Use devm_add_action_or_reset() for calls to clk_disable_unprepare()
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 16 Mar 2020 09:09:45 +0000 (17:09 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 22 Mar 2020 21:10:41 +0000 (22:10 +0100)
commite08194c03293dc39c45875d0e7fd92ff3452a91e
treee67828ec465f531a452e6ac492e88e62ce2af662
parentdaf89736b79a979ad2caffef6332b6ae4a37fc7f
rtc: mxc: Use devm_add_action_or_reset() for calls to clk_disable_unprepare()

Use devm_add_action_or_reset() for calls to clk_disable_unprepare(),
which can simplify the error handling, and .remove callback can be dropped.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1584349785-27042-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-mxc.c