]> git.karo-electronics.de Git - karo-tx-linux.git/commit
watchdog/mpc8xxx: add a const qualifier
authorArnd Bergmann <arnd@arndb.de>
Mon, 21 May 2012 19:57:39 +0000 (21:57 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 24 Jul 2012 06:41:38 +0000 (08:41 +0200)
commitc4a1e33b254b6d40a8540b31e69deb92436b4fab
treef5801d20a1f6bcaf2cdc748783290285e747ec61
parent061b183d3b7ec8a7b13c807ba32d3f8078f6b279
watchdog/mpc8xxx: add a const qualifier

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@arndb.de>
[ukl: split Arnd's patch by driver and add changelog]
Acked-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/watchdog/mpc8xxx_wdt.c