From: Paul Walmsley Date: Wed, 7 May 2008 19:50:19 +0000 (-0600) Subject: mach-omap2/serial.c: fix minor bug and checkpatch warnings X-Git-Tag: v2.6.26-omap1~123^2~133 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d55266f2f78b533e8a2bfb46e19e2d8b985e6f15;p=linux-2.6-omap-h63xx.git mach-omap2/serial.c: fix minor bug and checkpatch warnings omap_serial_init() in arch/arm/mach-omap2/serial.c clears the wrong variable if it can't clk_get() a fclk - fix this. Also fix some checkpatch.pl warnings. Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 54ab7afab51..33a30e1108b 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -18,7 +18,7 @@ #include #include -#include +#include #include #include @@ -127,16 +127,15 @@ void __init omap_serial_init(void) if (IS_ERR(uart_ick[i])) { printk(KERN_ERR "Could not get uart%d_ick\n", i+1); uart_ick[i] = NULL; - } - else + } else clk_enable(uart_ick[i]); + sprintf(name, "uart%d_fck", i+1); uart_fck[i] = clk_get(NULL, name); if (IS_ERR(uart_fck[i])) { printk(KERN_ERR "Could not get uart%d_fck\n", i+1); - uart_ick[i] = NULL; - } - else + uart_fck[i] = NULL; + } else clk_enable(uart_fck[i]); omap_serial_reset(p);