rtc-cmos: fix printk output

With no IRQ available/defined, RTC-CMOS driver prints something like:
rtc0: alarms up to one no, y3k, 114 bytes nvram
^^^^
I guess the following is a bit easier to understand:
rtc0: no alarms, y3k, 114 bytes nvram

Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Krzysztof Halasa and committed by Linus Torvalds 6d029b64 6e538aaf

+9 -11
+9 -11
drivers/rtc/rtc-cmos.c
··· 797 goto cleanup2; 798 } 799 800 - pr_info("%s: alarms up to one %s%s, %zd bytes nvram%s\n", 801 - dev_name(&cmos_rtc.rtc->dev), 802 - is_valid_irq(rtc_irq) 803 - ? (cmos_rtc.mon_alrm 804 - ? "year" 805 - : (cmos_rtc.day_alrm 806 - ? "month" : "day")) 807 - : "no", 808 - cmos_rtc.century ? ", y3k" : "", 809 - nvram.size, 810 - is_hpet_enabled() ? ", hpet irqs" : ""); 811 812 return 0; 813
··· 797 goto cleanup2; 798 } 799 800 + pr_info("%s: %s%s, %zd bytes nvram%s\n", 801 + dev_name(&cmos_rtc.rtc->dev), 802 + !is_valid_irq(rtc_irq) ? "no alarms" : 803 + cmos_rtc.mon_alrm ? "alarms up to one year" : 804 + cmos_rtc.day_alrm ? "alarms up to one month" : 805 + "alarms up to one day", 806 + cmos_rtc.century ? ", y3k" : "", 807 + nvram.size, 808 + is_hpet_enabled() ? ", hpet irqs" : ""); 809 810 return 0; 811