* [PATCH] mach-omap2/serial.c: fix minor bug and checkpatch warnings
@ 2008-05-07 19:50 Paul Walmsley
2008-05-07 23:38 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Paul Walmsley @ 2008-05-07 19:50 UTC (permalink / raw)
To: linux-omap; +Cc: jouni.hogander
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 <paul@pwsan.com>
---
arch/arm/mach-omap2/serial.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 54ab7af..bb79f43 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -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,17 +127,17 @@ 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);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] mach-omap2/serial.c: fix minor bug and checkpatch warnings
2008-05-07 19:50 [PATCH] mach-omap2/serial.c: fix minor bug and checkpatch warnings Paul Walmsley
@ 2008-05-07 23:38 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2008-05-07 23:38 UTC (permalink / raw)
To: Paul Walmsley; +Cc: linux-omap, jouni.hogander
* Paul Walmsley <paul@pwsan.com> [080507 12:51]:
>
> 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.
I've pushed this but left out the unnecessary braces around both
clk_enable() lines.
Tony
>
> Signed-off-by: Paul Walmsley <paul@pwsan.com>
> ---
>
> arch/arm/mach-omap2/serial.c | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
>
> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
> index 54ab7af..bb79f43 100644
> --- a/arch/arm/mach-omap2/serial.c
> +++ b/arch/arm/mach-omap2/serial.c
> @@ -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,17 +127,17 @@ 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);
> }
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-07 23:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 19:50 [PATCH] mach-omap2/serial.c: fix minor bug and checkpatch warnings Paul Walmsley
2008-05-07 23:38 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox