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

rtc: rtc-at91rm9200: remove unnecessary platform_set_drvdata()

The driver core clears the driver data to NULL after device_release or
on probe failure, since commit 0998d063100 ("device-core: Ensure drvdata
= NULL when no driver is bound"). Thus, it is not needed to manually
clear the device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jingoo Han and committed by
Linus Torvalds
3d772d34 46aee0c7

-1
-1
drivers/rtc/rtc-at91rm9200.c
··· 438 438 439 439 rtc_device_unregister(rtc); 440 440 iounmap(at91_rtc_regs); 441 - platform_set_drvdata(pdev, NULL); 442 441 443 442 return 0; 444 443 }