]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commit983290b0625628448ea8907243e3cbceda0a8d74
treea328c72a201256c95880871e4b4f57e2939d9544
parent417328c3f77187f5d8cc433627c25eb1063c1507
pwm: i.MX: eliminate build warning

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