Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/rtc/rtc-ds1302.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>

authored by

Sachin Kamat and committed by
Linus Torvalds
013f91e7 ffeb4051

-6
-6
drivers/rtc/rtc-ds1302.c
··· 234 234 return 0; 235 235 } 236 236 237 - static int __exit ds1302_rtc_remove(struct platform_device *pdev) 238 - { 239 - return 0; 240 - } 241 - 242 237 static struct platform_driver ds1302_platform_driver = { 243 238 .driver = { 244 239 .name = DRV_NAME, 245 240 .owner = THIS_MODULE, 246 241 }, 247 - .remove = __exit_p(ds1302_rtc_remove), 248 242 }; 249 243 250 244 module_platform_driver_probe(ds1302_platform_driver, ds1302_rtc_probe);