Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit e2f57bf

Browse files
rtc: at91rm9200: annotate at91_rtc_remove with __exit again
Having the driver as a builtin after dropping the __exit annotation results in: >> drivers/rtc/rtc-at91rm9200.c:561:13: warning: 'at91_rtc_remove' defined but not used [-Wunused-function] 561 | static void at91_rtc_remove(struct platform_device *pdev) | ^~~~~~~~~~~~~~~ Reported-by: Stephen Rothwell <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent dc71c03 commit e2f57bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-at91rm9200.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ static int __init at91_rtc_probe(struct platform_device *pdev)
558558
/*
559559
* Disable and remove the RTC driver
560560
*/
561-
static void at91_rtc_remove(struct platform_device *pdev)
561+
static void __exit at91_rtc_remove(struct platform_device *pdev)
562562
{
563563
/* Disable all interrupts */
564564
at91_rtc_write_idr(AT91_RTC_ACKUPD | AT91_RTC_ALARM |

0 commit comments

Comments
 (0)