Commit 6d99c4c5 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Uwe Kleine-König

can: mpc5xxx_can: make data used as *of_device_id.data const

Since of_device_id.data is declared as a pointer to const data a few
more consts can be added in this driver.

[ukl: split Arnd's patch by driver]
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent 306e352a
...@@ -380,12 +380,12 @@ static int mpc5xxx_can_resume(struct platform_device *ofdev) ...@@ -380,12 +380,12 @@ static int mpc5xxx_can_resume(struct platform_device *ofdev)
} }
#endif #endif
static struct mpc5xxx_can_data __devinitdata mpc5200_can_data = { static const struct mpc5xxx_can_data __devinitdata mpc5200_can_data = {
.type = MSCAN_TYPE_MPC5200, .type = MSCAN_TYPE_MPC5200,
.get_clock = mpc52xx_can_get_clock, .get_clock = mpc52xx_can_get_clock,
}; };
static struct mpc5xxx_can_data __devinitdata mpc5121_can_data = { static const struct mpc5xxx_can_data __devinitdata mpc5121_can_data = {
.type = MSCAN_TYPE_MPC5121, .type = MSCAN_TYPE_MPC5121,
.get_clock = mpc512x_can_get_clock, .get_clock = mpc512x_can_get_clock,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment