On Thursday 26 August 2010 23:56:49 ext G, Manjunath Kondaiah wrote:
> From: Manjunatha GK <[email protected]>
> 
> Fixes sparse warning for the below error
> 
> drivers/mfd/twl4030-codec.c:118:5: error: symbol
> 'twl4030_codec_disable_resource' redeclared with different type
> (originally declared at include/linux/mfd/twl4030- codec.h:268) -
> incompatible argument 1 (different signedness)
> 
> Signed-off-by: Manjunatha GK <[email protected]>
> Cc: Tony Lindgren <[email protected]>
> Cc: Nishanth Menon <[email protected]>
> ---
>  include/linux/mfd/twl4030-codec.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/linux/mfd/twl4030-codec.h
> b/include/linux/mfd/twl4030-codec.h index 2ec317c..0f7300e 100644
> --- a/include/linux/mfd/twl4030-codec.h
> +++ b/include/linux/mfd/twl4030-codec.h
> @@ -265,7 +265,7 @@ enum twl4030_codec_res {
>       TWL4030_CODEC_RES_MAX,
>  };
> 
> -int twl4030_codec_disable_resource(enum twl4030_codec_res id);
> +int twl4030_codec_disable_resource(unsigned id);
>  int twl4030_codec_enable_resource(enum twl4030_codec_res id);
>  unsigned int twl4030_codec_get_mclk(void);

I have no idea how this happened, but it would be better to correct the driver 
instead the header.

-- 
Péter
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to