mmc: sdhci-pltfm: dt device does not pass parent to sdhci_alloc_host
commita4d2177f00a5252d825236c5124bc1e9918bdb41
authorShawn Guo <shawn.guo@linaro.org>
Fri, 1 Jul 2011 01:35:28 +0000 (1 09:35 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 27 Jul 2011 01:31:33 +0000 (27 09:31 +0800)
tree3048cb14ad99da349e205346a2034a1699305d03
parent57ed3314e0bfa90ea63c63b8d3038814e9d98a20
mmc: sdhci-pltfm: dt device does not pass parent to sdhci_alloc_host

Neither platform based nor dt based device needs to pass the parent
to sdhci_alloc_host.  There is no difference between platform and dt
on this point.

The patch makes the change to pass device itself than its parent to
sdhci_alloc_host for dt case too.  Otherwise the probe function of
sdhci based drivers which is shared between platform and dt will
fail on dt case.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Chris Ball <cjb@laptop.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-pltfm.c