• David Brownell's avatar
    [PATCH] at91_rtc updates · 5d4675a8
    David Brownell authored
    Various bug fixes to the at91rm9200 RTC:
    
     - alarm:  setalarm() should pay attention to the "enabled" flag
    
     - init:  cleaner handling of the wakeup flags, which cpu init should
       really have set up.  Doing it here is just a workaround.
    
     - linkage:  since the at91_rtc driver probe() routine is in the init
       section, it should use platform_driver_probe() instead of leaving
       that pointer around in the driver struct after init section removal.
    
     - linkage:  likewise, remove() belongs in the exit section.
    
    Among other things, the init and alarm changes ensure that this driver
    handles the new sysfs "wakealarm" attribute properly.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    5d4675a8
rtc-at91rm9200.c 11.2 KB