Commit 0cb4b84fd3806d1cdad3f37ee606fd9f8d506264
Committed by
Linus Torvalds
1 parent
753190928d
Exists in
master
and in
20 other branches
drivers/rtc/rtc-snvs.c: remove empty function
After the switch to devm_* functions and the removal of rtc_device_unregister(), the 'remove' function does not do anything. Delete it. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 0 additions and 6 deletions Side-by-side Diff
drivers/rtc/rtc-snvs.c
... | ... | @@ -294,11 +294,6 @@ |
294 | 294 | return 0; |
295 | 295 | } |
296 | 296 | |
297 | -static int snvs_rtc_remove(struct platform_device *pdev) | |
298 | -{ | |
299 | - return 0; | |
300 | -} | |
301 | - | |
302 | 297 | #ifdef CONFIG_PM_SLEEP |
303 | 298 | static int snvs_rtc_suspend(struct device *dev) |
304 | 299 | { |
... | ... | @@ -337,7 +332,6 @@ |
337 | 332 | .of_match_table = of_match_ptr(snvs_dt_ids), |
338 | 333 | }, |
339 | 334 | .probe = snvs_rtc_probe, |
340 | - .remove = snvs_rtc_remove, | |
341 | 335 | }; |
342 | 336 | module_platform_driver(snvs_rtc_driver); |
343 | 337 |