Some RTC chips that support Alarm might not always be connected to IRQ. The alarm interrupt of the RTC might be connected to the WAKEUP pin of the CPU, which gets CPU out of suspend to RAM state. Retrieved from rtc-linux google group.
In order to allow the creatuion of the sysfs wakealarm attribute, move device_set_wakeup_capable() above RTC device registration