Commit d55266f2 authored by Paul Walmsley's avatar Paul Walmsley Committed by Tony Lindgren

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: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 69283f28
......@@ -18,7 +18,7 @@
#include <linux/serial_reg.h>
#include <linux/clk.h>
#include <asm/io.h>
#include <linux/io.h>
#include <asm/arch/common.h>
#include <asm/arch/board.h>
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment