Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/rtc/rtc-s3c.c: remove NO_IRQ macro

NO_IRQ may be defined as '(unsigned int) -1' in some architectures (arm,
sh ...), and either may not be defined in some architectures (arm64) which
can enable RTC_DRV_S3C.

Also since platform_get_irq returns err-code in case of any error, we do
not need to intialize s3c_rtc_alarmno and s3c_rtc_tickno.

Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Pankaj Dubey and committed by
Linus Torvalds
ebe75335 dc9d8887

+2 -2
+2 -2
drivers/rtc/rtc-s3c.c
··· 48 48 49 49 static struct clk *rtc_clk; 50 50 static void __iomem *s3c_rtc_base; 51 - static int s3c_rtc_alarmno = NO_IRQ; 52 - static int s3c_rtc_tickno = NO_IRQ; 51 + static int s3c_rtc_alarmno; 52 + static int s3c_rtc_tickno; 53 53 static enum s3c_cpu_type s3c_rtc_cpu_type; 54 54 55 55 static DEFINE_SPINLOCK(s3c_rtc_pie_lock);