“9d931dd2ed62c14d7bf7c4c3ab3ef7610c46ca9b”上不存在“include/uapi/linux/if_ether.h”
提交 948e0ed8 编写于 作者: L Linus Walleij

MIPS: alchemy: switch to gpiochip_add_data()

We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.

Cc: linux-mips@linux-mips.org
Acked-by: NRalf Baechle <ralf@linux-mips.org>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 ebdbcba0
...@@ -160,14 +160,14 @@ static int __init alchemy_gpiochip_init(void) ...@@ -160,14 +160,14 @@ static int __init alchemy_gpiochip_init(void)
switch (alchemy_get_cputype()) { switch (alchemy_get_cputype()) {
case ALCHEMY_CPU_AU1000: case ALCHEMY_CPU_AU1000:
ret = gpiochip_add(&alchemy_gpio_chip[0]); ret = gpiochip_add_data(&alchemy_gpio_chip[0], NULL);
break; break;
case ALCHEMY_CPU_AU1500...ALCHEMY_CPU_AU1200: case ALCHEMY_CPU_AU1500...ALCHEMY_CPU_AU1200:
ret = gpiochip_add(&alchemy_gpio_chip[0]); ret = gpiochip_add_data(&alchemy_gpio_chip[0], NULL);
ret |= gpiochip_add(&alchemy_gpio_chip[1]); ret |= gpiochip_add_data(&alchemy_gpio_chip[1], NULL);
break; break;
case ALCHEMY_CPU_AU1300: case ALCHEMY_CPU_AU1300:
ret = gpiochip_add(&au1300_gpiochip); ret = gpiochip_add_data(&au1300_gpiochip, NULL);
break; break;
} }
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册