1
linux/drivers/rtc
Anton Vorontsov 2fac6674dd rtc: bunch of drivers: fix 'no irq' case handing
This patch fixes a bunch of irq checking misuses.  Most drivers were
getting irq via platform_get_irq(), which returns -ENXIO or r->start.

rtc-cmos.c is special.  It is using PNP and platform bindings.  Hopefully
nobody is using PNP IRQ 0 for RTC.  So the changes should be safe.

rtc-sh.c is using platform_get_irq, but was storing a result into an
unsigned type, then was checking for < 0.  This is fixed now.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-06 15:59:23 -08:00
..
class.c rtc: struct device: replace bus_id with dev_name(), dev_set_name() 2009-01-06 15:59:23 -08:00
hctosys.c rtc_hctosys expects RTCs in UTC (doc) 2007-11-14 18:45:36 -08:00
interface.c rtc: struct device: replace bus_id with dev_name(), dev_set_name() 2009-01-06 15:59:23 -08:00
Kconfig rtc: add alarm/update irq interfaces 2009-01-04 13:33:20 -08:00
Makefile rtc: add Dallas DS1390/93/94 RTC chips 2008-11-12 17:17:18 -08:00
rtc-at32ap700x.c rtc: bunch of drivers: fix 'no irq' case handing 2009-01-06 15:59:23 -08:00
rtc-at91rm9200.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-at91sam9.c [ARM] 5319/1: AT91: support AT91CAP9 revC CPUs 2008-12-01 17:22:07 +00:00
rtc-bfin.c Blackfin RTC Driver: dont let RTC programming in bootloaders randomly cause ~5 second boot delays 2008-08-20 15:40:30 -07:00
rtc-bq4802.c drivers/rtc/rtc-bq4802.c: don't use BIN_2_BCD and BCD_2_BIN 2008-10-20 08:52:41 -07:00
rtc-cmos.c rtc: bunch of drivers: fix 'no irq' case handing 2009-01-06 15:59:23 -08:00
rtc-core.h rtc: update to class device removal patches 2007-05-08 11:15:18 -07:00
rtc-dev.c rtc: add alarm/update irq interfaces 2009-01-04 13:33:20 -08:00
rtc-ds1216.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-ds1286.c rtc: rtc-ds1286 and rtc-m48t35 need <linux/io.h> 2008-10-16 11:32:38 -07:00
rtc-ds1302.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 2008-10-20 09:13:34 -07:00
rtc-ds1305.c x86: sysfs: kill owner field from attribute 2008-10-20 08:52:42 -07:00
rtc-ds1307.c x86: sysfs: kill owner field from attribute 2008-10-20 08:52:42 -07:00
rtc-ds1374.c rtc: DS1374 wakeup support 2008-10-16 11:21:39 -07:00
rtc-ds1390.c rtc: add Dallas DS1390/93/94 RTC chips 2008-11-12 17:17:18 -08:00
rtc-ds1511.c rtc: bunch of drivers: fix 'no irq' case handing 2009-01-06 15:59:23 -08:00
rtc-ds1553.c rtc: bunch of drivers: fix 'no irq' case handing 2009-01-06 15:59:23 -08:00
rtc-ds1672.c rtc: fix missing id_table in rtc-ds1672 and rtc-max6900 drivers 2008-12-10 08:01:52 -08:00
rtc-ds1742.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-ds3234.c rtc: ds3234 doesn't link when built-in 2008-10-30 11:38:47 -07:00
rtc-ep93xx.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
rtc-fm3130.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-isl1208.c rtc: rtc-isl1208: reject invalid dates 2008-12-23 15:58:21 -08:00
rtc-lib.c rtc_time_to_tm: fix signed/unsigned arithmetic 2008-09-02 19:21:40 -07:00
rtc-m41t80.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-m41t94.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-m48t35.c rtc: rtc-ds1286 and rtc-m48t35 need <linux/io.h> 2008-10-16 11:32:38 -07:00
rtc-m48t59.c rtc: bunch of drivers: fix 'no irq' case handing 2009-01-06 15:59:23 -08:00
rtc-m48t86.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-max6900.c rtc: fix missing id_table in rtc-ds1672 and rtc-max6900 drivers 2008-12-10 08:01:52 -08:00
rtc-max6902.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-omap.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-parisc.c parisc: add rtc platform driver 2008-10-10 16:32:30 +00:00
rtc-pcf8563.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-pcf8583.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-pl030.c rtc: remove some NOP open/release methods 2008-10-16 11:21:39 -07:00
rtc-pl031.c rtc: remove some NOP open/release methods 2008-10-16 11:21:39 -07:00
rtc-ppc.c rtc: class driver for ppc_md RTC functions 2008-06-06 11:29:13 -07:00
rtc-proc.c drivers: use non-racy method for proc entries creation (2) 2008-04-29 08:06:22 -07:00
rtc-r9701.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-rs5c313.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-rs5c348.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-rs5c372.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-rx8581.c rtc: basic implementation of Epson RX-8581 I2C Real Time Clock 2008-11-12 17:17:18 -08:00
rtc-s3c.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into s3c-moves2 2008-11-03 14:49:01 +00:00
rtc-s35390a.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-sa1100.c [ARM] rtc-sa1100: don't assume CLOCK_TICK_RATE to be a constant 2008-12-29 17:57:48 +08:00
rtc-sh.c rtc: bunch of drivers: fix 'no irq' case handing 2009-01-06 15:59:23 -08:00
rtc-starfire.c rtc: rtc-starfire fixes 2008-11-21 01:24:38 -08:00
rtc-stk17ta8.c rtc: bunch of drivers: fix 'no irq' case handing 2009-01-06 15:59:23 -08:00
rtc-sun4v.c rtc: rtc-sun4v fixes, revised 2008-11-14 16:37:54 -08:00
rtc-sysfs.c rtc: add the support for alarm time relative to current time in sysfs 2008-04-28 08:58:17 -07:00
rtc-test.c rtc: silence section mismatch warning in rtc-test 2008-04-28 08:58:16 -07:00
rtc-twl4030.c rtc: bunch of drivers: fix 'no irq' case handing 2009-01-06 15:59:23 -08:00
rtc-v3020.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
rtc-vr41xx.c rtc: bunch of drivers: fix 'no irq' case handing 2009-01-06 15:59:23 -08:00
rtc-wm8350.c rtc: rtc-wm8350: add support for WM8350 RTC 2008-11-12 17:17:18 -08:00
rtc-x1205.c drivers/rtc/: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00