[POWERPC] 85xx: Fix compile warning
authorKumar Gala <galak@kernel.crashing.org>
Wed, 16 Apr 2008 04:35:47 +0000 (23:35 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 17 Apr 2008 06:01:41 +0000 (01:01 -0500)
arch/powerpc/platforms/85xx/mpc85xx_ads.c: In function ‘init_ioports’:
arch/powerpc/platforms/85xx/mpc85xx_ads.c:168: warning: initialization discards qualifiers from pointer target type

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/85xx/mpc85xx_ads.c

index 4e03050961148304d9f357409bdbceeb43665cd7..3582c841844b377c76a1e55d53a4a10df6920080 100644 (file)
@@ -165,7 +165,7 @@ static void __init init_ioports(void)
        int i;
 
        for (i = 0; i < ARRAY_SIZE(mpc8560_ads_pins); i++) {
-               struct cpm_pin *pin = &mpc8560_ads_pins[i];
+               const struct cpm_pin *pin = &mpc8560_ads_pins[i];
                cpm2_set_pin(pin->port, pin->pin, pin->flags);
        }