@@ -100,26 +100,22 @@ static void __init gumstix_mmc_init(void)
100100#endif
101101
102102#ifdef CONFIG_USB_PXA25X
103- static struct gpiod_lookup_table gumstix_gpio_vbus_gpiod_table = {
104- .dev_id = "gpio-vbus" ,
105- .table = {
106- GPIO_LOOKUP ("gpio-pxa" , GPIO_GUMSTIX_USB_GPIOn ,
107- "vbus" , GPIO_ACTIVE_HIGH ),
108- GPIO_LOOKUP ("gpio-pxa" , GPIO_GUMSTIX_USB_GPIOx ,
109- "pullup" , GPIO_ACTIVE_HIGH ),
110- { },
111- },
103+ static const struct property_entry spitz_mci_props [] __initconst = {
104+ PROPERTY_ENTRY_GPIO ("vbus-gpios" , & pxa2xx_gpiochip_node ,
105+ GPIO_GUMSTIX_USB_GPIOn , GPIO_ACTIVE_HIGH ),
106+ PROPERTY_ENTRY_GPIO ("pullup-gpios" , & pxa2xx_gpiochip_node ,
107+ GPIO_GUMSTIX_USB_GPIOx , GPIO_ACTIVE_HIGH ),
108+ { }
112109};
113110
114- static struct platform_device gumstix_gpio_vbus = {
111+ static const struct platform_device_info gumstix_gpio_vbus_info __initconst = {
115112 .name = "gpio-vbus" ,
116- .id = -1 ,
113+ .id = PLATFORM_DEVID_NONE ,
117114};
118115
119116static void __init gumstix_udc_init (void )
120117{
121- gpiod_add_lookup_table (& gumstix_gpio_vbus_gpiod_table );
122- platform_device_register (& gumstix_gpio_vbus );
118+ platform_device_register_full (& gumstix_gpio_vbus_info );
123119}
124120#else
125121static void gumstix_udc_init (void )
0 commit comments