From: Uwe Kleine-König Date: Thu, 12 Aug 2010 06:18:28 +0000 (+0200) Subject: ARM: pxa: Make id const in pwm_probe() X-Git-Tag: v3.12-rc1~8781^2~9^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3282ab116cd7ebd2829ac8088524b5b279330e5;p=kernel%2Fkernel-generic.git ARM: pxa: Make id const in pwm_probe() 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 Signed-off-by: Eric Miao --- 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;