--- zzzz-none-000/linux-3.10.107/drivers/rtc/rtc-dm355evm.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/rtc/rtc-dm355evm.c 2021-02-04 17:41:59.000000000 +0000 @@ -139,21 +139,13 @@ return 0; } -static int dm355evm_rtc_remove(struct platform_device *pdev) -{ - platform_set_drvdata(pdev, NULL); - return 0; -} - /* * I2C is used to talk to the MSP430, but this platform device is * exposed by an MFD driver that manages I2C communications. */ static struct platform_driver rtc_dm355evm_driver = { .probe = dm355evm_rtc_probe, - .remove = dm355evm_rtc_remove, .driver = { - .owner = THIS_MODULE, .name = "rtc-dm355evm", }, };