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

drivers/rtc/rtc-max8998.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: Minkyu Kang <mk7.kang@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
2fbbdb11 e7d5a628

-6
-6
drivers/rtc/rtc-max8998.c
··· 294 294 return 0; 295 295 } 296 296 297 - static int max8998_rtc_remove(struct platform_device *pdev) 298 - { 299 - return 0; 300 - } 301 - 302 297 static const struct platform_device_id max8998_rtc_id[] = { 303 298 { "max8998-rtc", TYPE_MAX8998 }, 304 299 { "lp3974-rtc", TYPE_LP3974 }, ··· 306 311 .owner = THIS_MODULE, 307 312 }, 308 313 .probe = max8998_rtc_probe, 309 - .remove = max8998_rtc_remove, 310 314 .id_table = max8998_rtc_id, 311 315 }; 312 316