Skip to content

Commit

Permalink
ARM: pxa: Make id const in pwm_probe()
Browse files Browse the repository at this point in the history
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@pengutronix.de>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Uwe Kleine-König authored and Eric Miao committed Aug 30, 2010
1 parent be7a6d9 commit b3282ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-pxa/pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3282ab

Please sign in to comment.