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

drivers/rtc/rtc-pcf8523.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>
Acked-by: Thierry Reding <thierry.reding@avionic-design.de>
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
af99ef9c f7de2a1d

-6
-6
drivers/rtc/rtc-pcf8523.c
··· 317 317 return 0; 318 318 } 319 319 320 - static int pcf8523_remove(struct i2c_client *client) 321 - { 322 - return 0; 323 - } 324 - 325 320 static const struct i2c_device_id pcf8523_id[] = { 326 321 { "pcf8523", 0 }, 327 322 { } ··· 338 343 .of_match_table = of_match_ptr(pcf8523_of_match), 339 344 }, 340 345 .probe = pcf8523_probe, 341 - .remove = pcf8523_remove, 342 346 .id_table = pcf8523_id, 343 347 }; 344 348 module_i2c_driver(pcf8523_driver);