[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <4D354752.3030401@samsung.com>
Date: Tue, 18 Jan 2011 16:54:58 +0900
From: Jaehoon Chung <jh80.chung@...sung.com>
To: Will Newton <will.newton@...il.com>
Cc: Chris Ball <cjb@...top.org>,
Linux Kernel list <linux-kernel@...r.kernel.org>,
linux-mmc@...r.kernel.org, Matt Fleming <matt@...sole-pimps.org>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v4] dw_mmc: Add Synopsys DesignWare mmc host driver.
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;
> + }
> +
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists