Skip to content

Commit

Permalink
pwm: i.MX: eliminate build warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lothar Waßmann authored and Thierry Reding committed Dec 6, 2012
1 parent 417328c commit 983290b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 983290b

Please sign in to comment.