[PATCH] ARM: pxa/pwm: Make id const in pwm_probe()

Eric Miao eric.y.miao at gmail.com
Wed Aug 18 00:23:52 EDT 2010


2010/8/12 Uwe Kleine-König <u.kleine-koenig at pengutronix.de>:
> This fixes the compiler warning:
>
>        arch/arm/plat-pxa/pwm.c: In function 'pwm_probe':
>        arch/arm/plat-pxa/pwm.c:179: warning: initialization discards qualifiers from pointer target type
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Applied.

> ---
>  arch/arm/plat-pxa/pwm.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/plat-pxa/pwm.c b/arch/arm/plat-pxa/pwm.c
> index 0732c6c..ef32686 100644
> --- a/arch/arm/plat-pxa/pwm.c
> +++ b/arch/arm/plat-pxa/pwm.c
> @@ -176,7 +176,7 @@ static inline void __add_pwm(struct pwm_device *pwm)
>
>  static int __devinit pwm_probe(struct platform_device *pdev)
>  {
> -       struct platform_device_id *id = platform_get_device_id(pdev);
> +       const struct platform_device_id *id = platform_get_device_id(pdev);
>        struct pwm_device *pwm, *secondary = NULL;
>        struct resource *r;
>        int ret = 0;
> --
> 1.7.1
>
>



More information about the linux-arm-kernel mailing list