summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-nuc900.c
diff options
context:
space:
mode:
authorJingoo Han2013-09-11 23:24:22 +0200
committerLinus Torvalds2013-09-12 00:58:57 +0200
commit0ebbf4397664d66f3e35503f2f3778a5e6377cbf (patch)
tree30316a8479fc529a2db9d40c0faca501fe3151a7 /drivers/rtc/rtc-nuc900.c
parentdrivers/rtc/rtc-max77686.c: Fix wrong register (diff)
downloadkernel-qcow2-linux-0ebbf4397664d66f3e35503f2f3778a5e6377cbf.tar.gz
kernel-qcow2-linux-0ebbf4397664d66f3e35503f2f3778a5e6377cbf.tar.xz
kernel-qcow2-linux-0ebbf4397664d66f3e35503f2f3778a5e6377cbf.zip
drivers/rtc/rtc-nuc900.c: use NULL instead of 0
check_rtc_access_enable() returns pointer, thus NULL should be used instead of 0 in order to fix the following sparse warning: drivers/rtc/rtc-nuc900.c:102:16: warning: Using plain integer as NULL pointer Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-nuc900.c')
-rw-r--r--drivers/rtc/rtc-nuc900.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-nuc900.c b/drivers/rtc/rtc-nuc900.c
index 22861c5e0c59..248653c74b80 100644
--- a/drivers/rtc/rtc-nuc900.c
+++ b/drivers/rtc/rtc-nuc900.c
@@ -99,7 +99,7 @@ static int *check_rtc_access_enable(struct nuc900_rtc *nuc900_rtc)
if (!timeout)
return ERR_PTR(-EPERM);
- return 0;
+ return NULL;
}
static int nuc900_rtc_bcd2bin(unsigned int timereg,