提交 a5dc66e2 编写于 作者: K Kumar Gala

[POWERPC] 85xx: Fix compile warning

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: NKumar Gala <galak@kernel.crashing.org>
上级 f9b9908c
...@@ -165,7 +165,7 @@ static void __init init_ioports(void) ...@@ -165,7 +165,7 @@ static void __init init_ioports(void)
int i; int i;
for (i = 0; i < ARRAY_SIZE(mpc8560_ads_pins); 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); cpm2_set_pin(pin->port, pin->pin, pin->flags);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册