diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-04-13 08:34:28 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-04-13 08:34:28 -0400 |
commit | a7022d600df1396cba23637b77b352d27d77b284 (patch) | |
tree | 117581ebc4096767009e916174160fbd94626165 /arch/arm/mach-omap1 | |
parent | 355f8eee48134ba10ca81664ee90eeb240f5f928 (diff) |
ARM: OMAP: fix 'using plain integer as NULL pointer' sparse warnings
sparse warns when 0 is passed to a function expecting a pointer argument.
Resolve these warnings by replacing the 0 with NULL.
arch/arm/plat-omap/include/plat/dmtimer.h:319:34: warning: Using plain integer as NULL pointer
arch/arm/plat-omap/include/plat/dmtimer.h:324:35: warning: Using plain integer as NULL pointer
arch/arm/mach-omap2/irq.c:294:22: warning: Using plain integer as NULL pointer
arch/arm/mach-omap1/board-palmz71.c:292:50: warning: Using plain integer as NULL pointer
arch/arm/mach-omap1/board-palmz71.c:295:73: warning: Using plain integer as NULL pointer
arch/arm/mach-omap1/ams-delta-fiq.c:105:63: warning: Using plain integer as NULL pointer
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/ams-delta-fiq.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmz71.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap1/ams-delta-fiq.c b/arch/arm/mach-omap1/ams-delta-fiq.c index fcce7ff37630..31197bd2dedc 100644 --- a/arch/arm/mach-omap1/ams-delta-fiq.c +++ b/arch/arm/mach-omap1/ams-delta-fiq.c | |||
@@ -102,7 +102,7 @@ void __init ams_delta_init_fiq(void) | |||
102 | } | 102 | } |
103 | 103 | ||
104 | retval = request_irq(INT_DEFERRED_FIQ, deferred_fiq, | 104 | retval = request_irq(INT_DEFERRED_FIQ, deferred_fiq, |
105 | IRQ_TYPE_EDGE_RISING, "deferred_fiq", 0); | 105 | IRQ_TYPE_EDGE_RISING, "deferred_fiq", NULL); |
106 | if (retval < 0) { | 106 | if (retval < 0) { |
107 | pr_err("Failed to get deferred_fiq IRQ, ret=%d\n", retval); | 107 | pr_err("Failed to get deferred_fiq IRQ, ret=%d\n", retval); |
108 | release_fiq(&fh); | 108 | release_fiq(&fh); |
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index a2c5abcd7c84..61ed4f0247ce 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
@@ -289,10 +289,10 @@ palmz71_gpio_setup(int early) | |||
289 | gpio_direction_input(PALMZ71_USBDETECT_GPIO); | 289 | gpio_direction_input(PALMZ71_USBDETECT_GPIO); |
290 | if (request_irq(gpio_to_irq(PALMZ71_USBDETECT_GPIO), | 290 | if (request_irq(gpio_to_irq(PALMZ71_USBDETECT_GPIO), |
291 | palmz71_powercable, IRQF_SAMPLE_RANDOM, | 291 | palmz71_powercable, IRQF_SAMPLE_RANDOM, |
292 | "palmz71-cable", 0)) | 292 | "palmz71-cable", NULL)) |
293 | printk(KERN_ERR | 293 | printk(KERN_ERR |
294 | "IRQ request for power cable failed!\n"); | 294 | "IRQ request for power cable failed!\n"); |
295 | palmz71_powercable(gpio_to_irq(PALMZ71_USBDETECT_GPIO), 0); | 295 | palmz71_powercable(gpio_to_irq(PALMZ71_USBDETECT_GPIO), NULL); |
296 | } | 296 | } |
297 | } | 297 | } |
298 | 298 | ||