From: Tony Lindgren <tony@atomide.com>
To: Sanjeev Premi <premi@ti.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] [omap2] Fix compiler warnings in gpmc.c
Date: Fri, 10 Oct 2008 14:27:08 +0300 [thread overview]
Message-ID: <20081010112708.GS3044@atomide.com> (raw)
In-Reply-To: <1223633991-32406-1-git-send-email-premi@ti.com>
* Sanjeev Premi <premi@ti.com> [081010 13:22]:
> Fix these compiler warnings:
>
> gpmc.c: In function 'gpmc_init':
> gpmc.c:432: warning: 'return' with a value, in function returning void
> gpmc.c:439: warning: 'return' with a value, in function returning void
Pushing.
Tony
> Signed-off-by: Sanjeev Premi <premi@ti.com>
> ---
> arch/arm/mach-omap2/gpmc.c | 6 ++----
> 1 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
> index f3e0271..4365c59 100644
> --- a/arch/arm/mach-omap2/gpmc.c
> +++ b/arch/arm/mach-omap2/gpmc.c
> @@ -429,18 +429,16 @@ void __init gpmc_init(void)
> gpmc_l3_clk = clk_get(NULL, ck);
> if (IS_ERR(gpmc_l3_clk)) {
> printk(KERN_ERR "Could not get GPMC clock %s\n", ck);
> - return -ENODEV;
> + BUG();
> }
>
> gpmc_base = ioremap(l, SZ_4K);
> if (!gpmc_base) {
> clk_put(gpmc_l3_clk);
> printk(KERN_ERR "Could not get GPMC register memory\n");
> - return -ENOMEM;
> + BUG();
> }
>
> - BUG_ON(IS_ERR(gpmc_l3_clk));
> -
> l = gpmc_read_reg(GPMC_REVISION);
> printk(KERN_INFO "GPMC revision %d.%d\n", (l >> 4) & 0x0f, l & 0x0f);
> /* Set smart idle mode and automatic L3 clock gating */
> --
> 1.5.6
>
> --
> 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
next prev parent reply other threads:[~2008-10-10 11:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-10 10:19 [PATCH] [omap2] Fix compiler warnings in gpmc.c Sanjeev Premi
2008-10-10 11:27 ` Tony Lindgren [this message]
2008-10-10 14:58 ` Pakaravoor, Jagadeesh
2008-10-11 15:00 ` Tony Lindgren
2008-10-16 21:16 ` Tony Lindgren
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=20081010112708.GS3044@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap@vger.kernel.org \
--cc=premi@ti.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