Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-bcm2835 to this allocation.
_i2caddr = address;snprintf(busfile,sizeof(busfile),"/dev/i2c-%d", bus);bcm2835_init();//init bcm chip for power switchbcm2835_gpio_fsel(POWERPIN, BCM2835_GPIO_FSEL_OUTP);//set GPIO17 (pin11) as the power switch pinSetMainPower(true);//set power onreset();//usleep(10*1000)...