+ .dev = {
+ .platform_data = sidewinder_uart_data,
+ },
-+ .num_resources = 2,
-+ .resource = &sidewinder_uart_resources,
++ .num_resources = ARRAY_SIZE(sidewinder_uart_resources),
++ .resource = sidewinder_uart_resources,
+};
+
+static struct platform_device *sidewinder_devices[] __initdata = {