None of the remaining boards put useful data into the platform_data structures, so effectively this only works with DT based probing. Remove all code that references this data, to stop using the legacy gpiolib interfaces. The pxa27x version already supports gpio descriptors, while the pxa25x version now does it the same way.
Showing the changes to include/linux/platform_data (1 of 8 files). Show all
Unified · Split
| @@ -10,21 +10,6 @@ · 9 unmodified lines | |||
| 10 | #ifndef PXA2XX_UDC_H | 10 | #ifndef PXA2XX_UDC_H |
| 11 | #define PXA2XX_UDC_H | 11 | #define PXA2XX_UDC_H |
| 12 | 12 | ||
| 13 | struct pxa2xx_udc_mach_info { | ||
| 14 | int (*udc_is_connected)(void); /* do we see host? */ | ||
| 15 | void (*udc_command)(int cmd); | ||
| 16 | #define PXA2XX_UDC_CMD_CONNECT 0 /* let host see us */ | ||
| 17 | #define PXA2XX_UDC_CMD_DISCONNECT 1 /* so host won't see us */ | ||
| 18 | |||
| 19 | /* Boards following the design guidelines in the developer's manual, | ||
| 20 | * with on-chip GPIOs not Lubbock's weird hardware, can have a sane | ||
| 21 | * VBUS IRQ and omit the methods above. Store the GPIO number | ||
| 22 | * here. Note that sometimes the signals go through inverters... | ||
| 23 | */ | ||
| 24 | bool gpio_pullup_inverted; | ||
| 25 | int gpio_pullup; /* high == pullup activated */ | ||
| 26 | }; | ||
| 27 | |||
| 28 | #ifdef CONFIG_PXA27x | 13 | #ifdef CONFIG_PXA27x |
| 29 | extern void pxa27x_clear_otgph(void); | 14 | extern void pxa27x_clear_otgph(void); |
| 30 | #else | 15 | #else |