Re: [PATCH] mmc: Allow sdhci platform drivers to set quirks2 from platform data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Al,

On Tue, Apr 30 2013, Al Cooper wrote:
> Signed-off-by: Al Cooper <alcooperx@xxxxxxxxx>
> ---
>  drivers/mmc/host/sdhci-pltfm.c |    4 +++-
>  drivers/mmc/host/sdhci-pltfm.h |    1 +
>  2 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
> index 3145a78..e605509 100644
> --- a/drivers/mmc/host/sdhci-pltfm.c
> +++ b/drivers/mmc/host/sdhci-pltfm.c
> @@ -149,8 +149,10 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
>  		host->ops = pdata->ops;
>  	else
>  		host->ops = &sdhci_pltfm_ops;
> -	if (pdata)
> +	if (pdata) {
>  		host->quirks = pdata->quirks;
> +		host->quirks2 = pdata->quirks2;
> +	}
>  	host->irq = platform_get_irq(pdev, 0);
>  
>  	if (!request_mem_region(iomem->start, resource_size(iomem),
> diff --git a/drivers/mmc/host/sdhci-pltfm.h b/drivers/mmc/host/sdhci-pltfm.h
> index 153b6c5..2940ee3 100644
> --- a/drivers/mmc/host/sdhci-pltfm.h
> +++ b/drivers/mmc/host/sdhci-pltfm.h
> @@ -18,6 +18,7 @@
>  struct sdhci_pltfm_data {
>  	struct sdhci_ops *ops;
>  	unsigned int quirks;
> +	unsigned int quirks2;
>  };
>  
>  struct sdhci_pltfm_host {

Thanks, pushed to mmc-next for 3.11.

- Chris.
-- 
Chris Ball   <cjb@xxxxxxxxxx>   <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux