Re: [PATCH v2 1/7] mmc: sdhci: make sdhci-pltfm device drivers self registered

2011-05-05 Thread Anton Vorontsov
On Thu, May 05, 2011 at 09:22:52PM +0800, Shawn Guo wrote: [...] > +static int __devinit sdhci_cns3xxx_probe(struct platform_device *pdev) > +{ > + return sdhci_pltfm_register(pdev, &sdhci_cns3xxx_pdata); > +} > + > +static int __devexit sdhci_cns3xxx_remove(struct platform_device *pdev) > +{ >

[PATCH v2 1/7] mmc: sdhci: make sdhci-pltfm device drivers self registered

2011-05-05 Thread Shawn Guo
The patch turns the common stuff in sdhci-pltfm.c into functions, and add device drivers their own .probe and .remove which in turn call into the common functions, so that those sdhci-pltfm device drivers register itself and keep all device specific things away from common sdhci-pltfm file. Signed