A recent change to the OMAP driver making it use a dynamic GPIO base created problems with some old OMAP1 board files, among them Nokia 770, SX1 and also the OMAP2 Nokia n8x0. Fix up all instances of GPIOs being used for the MMC driver by pushing the handling of power, slot selection and MMC "cover" into the driver as optional GPIOs. This is maybe not the most perfect solution as the MMC framework have some central handlers for some of the stuff, but it at least makes the situtation better and solves the immediate issue.
Showing the changes to include/linux/platform_data (1 of 5 files). Show all
Unified · Split
| @@ -20,8 +20,6 @@ struct omap_mmc_platform_data { · 19 unmodified lines | ||
| 20 | 20 | * maximum frequency on the MMC bus */ |
| 21 | 21 | unsigned int max_freq; |
| 22 | 22 | |
| 23 | − /* switch the bus to a new slot */ | |
| 24 | − int (*switch_slot)(struct device *dev, int slot); | |
| 25 | 23 | /* initialize board-specific MMC functionality, can be NULL if |
| 26 | 24 | * not supported */ |
| 27 | 25 | int (*init)(struct device *dev); |