]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pwm: i.MX: eliminate build warning
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 5 Dec 2012 15:34:41 +0000 (16:34 +0100)
committerThierry Reding <thierry.reding@avionic-design.de>
Thu, 6 Dec 2012 07:52:04 +0000 (08:52 +0100)
compiling the i.MX pwm driver produces the following warning:
|drivers/pwm/pwm-imx.c: In function 'imx_pwm_probe':
|drivers/pwm/pwm-imx.c:281:7: warning: assignment discards qualifiers from pointer target type

Apply a 'const' attribute to the affected variable declaration.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/pwm-imx.c

index 8a5d3ae2946aef2f9e39010d3536150090fd0682..fe3fbdbc86aaeb2333722a3c88e55e42f78c3c71 100644 (file)
@@ -235,7 +235,7 @@ static int __devinit imx_pwm_probe(struct platform_device *pdev)
 {
        const struct of_device_id *of_id =
                        of_match_device(imx_pwm_dt_ids, &pdev->dev);
-       struct imx_pwm_data *data;
+       const struct imx_pwm_data *data;
        struct imx_chip *imx;
        struct resource *r;
        int ret = 0;