]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1343: cleanup .remove
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:49:41 +0000 (22:49 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:56:11 +0000 (22:56 +0200)
commit34b168a7ee5dad2fd307172498ba8b6a146cf78d
tree700b6b1fc53ca241109c67fd60a2ec87c2170ee1
parent3f6101acbc0b38eddd76e3fc0ace6ac5f664fe36
rtc: ds1343: cleanup .remove

It is not necessary to call device_init_wakeup(dev, false) in .remove as
device_del will take care of that. It is also not necessary to
devm_free_irq. Finally, dev_pm_clear_wake_irq can be called
unconditionally.

Link: https://lore.kernel.org/r/20191019204941.6203-9-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1343.c