]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/83xx: add a const qualifier
authorUwe Kleine-König <u.kleine-koenig@pengutronix.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:36 +0000 (08:41 +0200)
This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:

arch/powerpc/platforms/83xx/suspend.c: In function 'pmc_probe':
arch/powerpc/platforms/83xx/suspend.c:336:7: error: assignment discards 'const' qualifier from pointer target type [-Werror]

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arch/powerpc/platforms/83xx/suspend.c

index 1a046715e4615fdb469ae95b81a99ba855c87e5c..1d769a29249f846a444bee68819730b5d12496ea 100644 (file)
@@ -326,7 +326,7 @@ static int pmc_probe(struct platform_device *ofdev)
        const struct of_device_id *match;
        struct device_node *np = ofdev->dev.of_node;
        struct resource res;
-       struct pmc_type *type;
+       const struct pmc_type *type;
        int ret = 0;
 
        match = of_match_device(pmc_match, &ofdev->dev);