[PATCH 5/7] mci: parent fixups

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Aug 16 11:39:39 EDT 2011


On 10:46 Mon 15 Aug     , Sascha Hauer wrote:
> Make the mci host a child of the hardware device and the disk
> a child of the mci host.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  drivers/mci/atmel_mci.c  |    1 +
>  drivers/mci/imx-esdhc.c  |    1 +
>  drivers/mci/imx.c        |    1 +
>  drivers/mci/mci-core.c   |    5 ++++-
>  drivers/mci/omap_hsmmc.c |    1 +
>  5 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c
> index b4489dd..47e3924 100644
> --- a/drivers/mci/atmel_mci.c
> +++ b/drivers/mci/atmel_mci.c
> @@ -449,6 +449,7 @@ static int mci_probe(struct device_d *hw_dev)
>  	host->mci.send_cmd = mci_request;
>  	host->mci.set_ios = mci_set_ios;
>  	host->mci.init = mci_reset;
> +	host->mci.hw_dev = dev;
it's hw_dev here

Best Regards,
J.



More information about the barebox mailing list