[PATCH v4] dw_mmc: Add Synopsys DesignWare mmc host driver.
Jaehoon Chung
jh80.chung at samsung.com
Tue Jan 18 02:54:58 EST 2011
Hi Will.
I have some question...i'm testing dw_mmc in our environment.
but i didn't understand pdata->init(?)...what initialize in there?
plz let me know that..
Thanks
Jaehoon Chung
Will Newton wrote:
> + host->pdev = pdev;
> + host->pdata = pdata = pdev->dev.platform_data;
> + if (!pdata || !pdata->init) {
> + dev_err(&pdev->dev,
> + "Platform data must supply init function\n");
> + ret = -ENODEV;
> + goto err_freehost;
> + }
> +
> + if (!pdata->select_slot && pdata->num_slots > 1) {
> + dev_err(&pdev->dev,
> + "Platform data must supply select_slot function\n");
> + ret = -ENODEV;
> + goto err_freehost;
> + }
> +
>
More information about the linux-arm-kernel
mailing list