diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-05-21 15:57:39 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-09-11 02:57:20 -0400 |
commit | 639397e48684b75c3476138ab1bfa5a67d6c2048 (patch) | |
tree | 504263adfc20ebdec2ec26114926111a14d6cfd5 /drivers/watchdog/mpc8xxx_wdt.c | |
parent | 12736b14afb4a6c456ada1f095ca7f22b3c349ed (diff) |
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>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers/watchdog/mpc8xxx_wdt.c')
-rw-r--r-- | drivers/watchdog/mpc8xxx_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c index 40f7bf1f8654..e6a038ae8dc2 100644 --- a/drivers/watchdog/mpc8xxx_wdt.c +++ b/drivers/watchdog/mpc8xxx_wdt.c | |||
@@ -193,7 +193,7 @@ static int __devinit mpc8xxx_wdt_probe(struct platform_device *ofdev) | |||
193 | int ret; | 193 | int ret; |
194 | const struct of_device_id *match; | 194 | const struct of_device_id *match; |
195 | struct device_node *np = ofdev->dev.of_node; | 195 | struct device_node *np = ofdev->dev.of_node; |
196 | struct mpc8xxx_wdt_type *wdt_type; | 196 | const struct mpc8xxx_wdt_type *wdt_type; |
197 | u32 freq = fsl_get_sys_freq(); | 197 | u32 freq = fsl_get_sys_freq(); |
198 | bool enabled; | 198 | bool enabled; |
199 | 199 | ||