2010-12-06 13:21:27

by Marek Belisko

[permalink] [raw]
Subject: [PATCH] omap1: pm_bus: Fix compilation warning.

Fix following compilation warning:
arch/arm/mach-omap1/pm_bus.c: In function 'omap1_pm_runtime_resume':
arch/arm/mach-omap1/pm_bus.c:51: warning: unused variable 'ret'

Signed-off-by: Marek Belisko <[email protected]>
---
arch/arm/mach-omap1/pm_bus.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap1/pm_bus.c b/arch/arm/mach-omap1/pm_bus.c
index 8b66392..f97c6e9 100644
--- a/arch/arm/mach-omap1/pm_bus.c
+++ b/arch/arm/mach-omap1/pm_bus.c
@@ -48,7 +48,6 @@ static int omap1_pm_runtime_suspend(struct device *dev)

static int omap1_pm_runtime_resume(struct device *dev)
{
- int ret = 0;
struct clk *iclk, *fclk;

dev_dbg(dev, "%s\n", __func__);
--
1.7.1


2010-12-07 22:23:12

by Kevin Hilman

[permalink] [raw]
Subject: Re: [PATCH] omap1: pm_bus: Fix compilation warning.

Marek Belisko <[email protected]> writes:

> Fix following compilation warning:
> arch/arm/mach-omap1/pm_bus.c: In function 'omap1_pm_runtime_resume':
> arch/arm/mach-omap1/pm_bus.c:51: warning: unused variable 'ret'
>
> Signed-off-by: Marek Belisko <[email protected]>

Acked-by: Kevin Hilman <[email protected]>

> ---
> arch/arm/mach-omap1/pm_bus.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-omap1/pm_bus.c b/arch/arm/mach-omap1/pm_bus.c
> index 8b66392..f97c6e9 100644
> --- a/arch/arm/mach-omap1/pm_bus.c
> +++ b/arch/arm/mach-omap1/pm_bus.c
> @@ -48,7 +48,6 @@ static int omap1_pm_runtime_suspend(struct device *dev)
>
> static int omap1_pm_runtime_resume(struct device *dev)
> {
> - int ret = 0;
> struct clk *iclk, *fclk;
>
> dev_dbg(dev, "%s\n", __func__);

2010-12-18 02:05:24

by Tony Lindgren

[permalink] [raw]
Subject: Re: [PATCH] omap1: pm_bus: Fix compilation warning.

* Kevin Hilman <[email protected]> [101207 14:13]:
> Marek Belisko <[email protected]> writes:
>
> > Fix following compilation warning:
> > arch/arm/mach-omap1/pm_bus.c: In function 'omap1_pm_runtime_resume':
> > arch/arm/mach-omap1/pm_bus.c:51: warning: unused variable 'ret'
> >
> > Signed-off-by: Marek Belisko <[email protected]>
>
> Acked-by: Kevin Hilman <[email protected]>

Taking these except for the mailbox one which is already fixed.

Tony