Set device id for gpios to allow gpiodev binding.
Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
aspeed_soc_get_irq(s, ASPEED_DEV_XDMA));
/* GPIO */
+ DEVICE(&s->gpio)->id = g_strdup("aspeed-gpio0");
if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpio), errp)) {
return;
}
sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpio), 0,
aspeed_soc_get_irq(s, ASPEED_DEV_GPIO));
+ DEVICE(&s->gpio_1_8v)->id = g_strdup("aspeed-gpio1");
if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpio_1_8v), errp)) {
return;
}