From: Nishanth Menon Date: Mon, 2 Aug 2010 10:18:11 +0000 (+0300) Subject: omap2/3/4: serial: remove initialization sparse warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c54bae1f06075e49206e7c327b4213e8b5a9b5fb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git omap2/3/4: serial: remove initialization sparse warnings Initialization of pointer should be done with NULL. Removes sparse warnings: arch/arm/mach-omap2/serial.c:566:17: warning: Using plain integer as NULL pointer arch/arm/mach-omap2/serial.c:567:17: warning: Using plain integer as NULL pointer Signed-off-by: Nishanth Menon Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 804dbb21cee2..9476c1c3aaa9 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -495,8 +495,8 @@ static void omap_uart_idle_init(struct omap_uart_state *uart) } uart->wk_mask = wk_mask; } else { - uart->wk_en = 0; - uart->wk_st = 0; + uart->wk_en = NULL; + uart->wk_st = NULL; uart->wk_mask = 0; uart->padconf = 0; }