diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2014-09-10 21:56:38 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-09-25 23:14:46 +1000 |
commit | ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe (patch) | |
tree | 004b418dc22e1e6be5b8ba27d229a67a4ceee4df /arch/powerpc/platforms/83xx/suspend.c | |
parent | d4fe0965e20820f3dd05bcc4d89de3da29bb83aa (diff) | |
download | op-kernel-dev-ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe.zip op-kernel-dev-ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe.tar.gz |
powerpc: make of_device_ids const
of_device_ids (i.e. compatible strings and the respective data) are not
supposed to change at runtime. All functions working with of_device_ids
provided by <linux/of.h> work with const of_device_ids. This allows to
mark all struct of_device_id const, too.
While touching these line also put the __init annotation at the right
position where necessary.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/83xx/suspend.c')
-rw-r--r-- | arch/powerpc/platforms/83xx/suspend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/83xx/suspend.c b/arch/powerpc/platforms/83xx/suspend.c index 4b4c081..eeb80e2 100644 --- a/arch/powerpc/platforms/83xx/suspend.c +++ b/arch/powerpc/platforms/83xx/suspend.c @@ -321,7 +321,7 @@ static const struct platform_suspend_ops mpc83xx_suspend_ops = { .end = mpc83xx_suspend_end, }; -static struct of_device_id pmc_match[]; +static const struct of_device_id pmc_match[]; static int pmc_probe(struct platform_device *ofdev) { const struct of_device_id *match; @@ -420,7 +420,7 @@ static struct pmc_type pmc_types[] = { } }; -static struct of_device_id pmc_match[] = { +static const struct of_device_id pmc_match[] = { { .compatible = "fsl,mpc8313-pmc", .data = &pmc_types[0], |