static struct resource stm3210e_eval_gpios_resources[] = { [0] = { .start = 0, .end = 15, .flags = IORESOURCE_IRQ, }, [1] = { .start = 0, .end = 15, .flags = IORESOURCE_IRQ, }, }; static struct platform_device stm3210e_eval_gpios_device = { .name = "io-gpio", .id = -1, .num_resources = 2, .resource = stm3210e_eval_gpios_resources, };