[PATCH 17/25] watchdog/mpc8xxx: add a const qualifier

Wim Van Sebroeck wim at iguana.be
Mon Jul 23 20:37:30 EST 2012


Hi Uwe,

> From: Arnd Bergmann <arnd at arndb.de>
> 
> This prepares *of_device_id.data becoming const. Without this change
> the following warning would occur:
> 
> 	drivers/watchdog/mpc8xxx_wdt.c: In function 'mpc8xxx_wdt_probe':
> 	drivers/watchdog/mpc8xxx_wdt.c:203:11: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
> 
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
> [ukl: split Arnd's patch by driver and add changelog]
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Acked-by: Wim Van Sebroeck <wim at iguana.be>

Kind regards,
Wim.



More information about the Linuxppc-dev mailing list