The OMAP GPIO driver hardcodes the MPIO chip base, but there is no point: we have already moved all consumers over to using descriptor look-ups. Drop the MPUIO GPIO base and use dynamic assignment. Root out the unused instances of the OMAP_MPUIO() macro and delete the unused OMAP_GPIO_IS_MPUIO() macro.
Showing the changes to include/linux/platform_data (1 of 3 files). Show all
Unified · Split
| @@ -144,9 +144,6 @@ · 143 unmodified lines | ||
| 144 | 144 | |
| 145 | 145 | #define OMAP_MAX_GPIO_LINES 192 |
| 146 | 146 | |
| 147 | −#define OMAP_MPUIO(nr) (OMAP_MAX_GPIO_LINES + (nr)) | |
| 148 | −#define OMAP_GPIO_IS_MPUIO(nr) ((nr) >= OMAP_MAX_GPIO_LINES) | |
| 149 | − | |
| 150 | 147 | #ifndef __ASSEMBLER__ |
| 151 | 148 | struct omap_gpio_reg_offs { |
| 152 | 149 | u16 revision; |