Commit c202ec09 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: sc27xx: remove .remove

dpm_sysfs_remove() and device_pm_remove() are already called by
device_del() on device removal so there is no need to call
device_init_wakeup(dev, false) from the driver and it allows to remove the
.remove callback.

Link: https://lore.kernel.org/r/20191021155806.3625-4-alexandre.belloni@bootlin.comReviewed-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent aef069a2
...@@ -661,12 +661,6 @@ static int sprd_rtc_probe(struct platform_device *pdev) ...@@ -661,12 +661,6 @@ static int sprd_rtc_probe(struct platform_device *pdev)
return 0; return 0;
} }
static int sprd_rtc_remove(struct platform_device *pdev)
{
device_init_wakeup(&pdev->dev, 0);
return 0;
}
static const struct of_device_id sprd_rtc_of_match[] = { static const struct of_device_id sprd_rtc_of_match[] = {
{ .compatible = "sprd,sc2731-rtc", }, { .compatible = "sprd,sc2731-rtc", },
{ }, { },
...@@ -679,7 +673,6 @@ static struct platform_driver sprd_rtc_driver = { ...@@ -679,7 +673,6 @@ static struct platform_driver sprd_rtc_driver = {
.of_match_table = sprd_rtc_of_match, .of_match_table = sprd_rtc_of_match,
}, },
.probe = sprd_rtc_probe, .probe = sprd_rtc_probe,
.remove = sprd_rtc_remove,
}; };
module_platform_driver(sprd_rtc_driver); module_platform_driver(sprd_rtc_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment