From: Tony Lindgren <tony@atomide.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-omap@vger.kernel.org, jouni.hogander@nokia.com
Subject: Re: [PATCH] mach-omap2/serial.c: fix minor bug and checkpatch warnings
Date: Wed, 7 May 2008 16:38:40 -0700 [thread overview]
Message-ID: <20080507233840.GT18682@atomide.com> (raw)
In-Reply-To: <alpine.DEB.1.00.0805071348280.8498@utopia.booyaka.com>
* 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
prev parent reply other threads:[~2008-05-07 23:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080507233840.GT18682@atomide.com \
--to=tony@atomide.com \
--cc=jouni.hogander@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox