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

drivers/rtc/rtc-max8997.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>
Cc: <ms925.kim@samsung.com>
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
f7de2a1d eda328fb

-6
-6
drivers/rtc/rtc-max8997.c
··· 507 507 return ret; 508 508 } 509 509 510 - static int max8997_rtc_remove(struct platform_device *pdev) 511 - { 512 - return 0; 513 - } 514 - 515 510 static void max8997_rtc_shutdown(struct platform_device *pdev) 516 511 { 517 512 struct max8997_rtc_info *info = platform_get_drvdata(pdev); ··· 526 531 .owner = THIS_MODULE, 527 532 }, 528 533 .probe = max8997_rtc_probe, 529 - .remove = max8997_rtc_remove, 530 534 .shutdown = max8997_rtc_shutdown, 531 535 .id_table = rtc_id, 532 536 };