sdhci-pltfm.c (e1b73cba13a0cc68dd4f746eced15bd6bb24cda4) | sdhci-pltfm.c (ad82ab65d8abd060b60d99b8559da99c31515a31) |
---|---|
1/* 2 * sdhci-pltfm.c Support for SDHCI platform devices 3 * Copyright (c) 2009 Intel Corporation 4 * 5 * Copyright (c) 2007, 2011 Freescale Semiconductor, Inc. 6 * Copyright (c) 2009 MontaVista Software, Inc. 7 * 8 * Authors: Xiaobo Xie <X.Xie@freescale.com> --- 136 unchanged lines hidden (view full) --- 145 146 pltfm_host = sdhci_priv(host); 147 148 host->hw_name = dev_name(&pdev->dev); 149 if (pdata && pdata->ops) 150 host->ops = pdata->ops; 151 else 152 host->ops = &sdhci_pltfm_ops; | 1/* 2 * sdhci-pltfm.c Support for SDHCI platform devices 3 * Copyright (c) 2009 Intel Corporation 4 * 5 * Copyright (c) 2007, 2011 Freescale Semiconductor, Inc. 6 * Copyright (c) 2009 MontaVista Software, Inc. 7 * 8 * Authors: Xiaobo Xie <X.Xie@freescale.com> --- 136 unchanged lines hidden (view full) --- 145 146 pltfm_host = sdhci_priv(host); 147 148 host->hw_name = dev_name(&pdev->dev); 149 if (pdata && pdata->ops) 150 host->ops = pdata->ops; 151 else 152 host->ops = &sdhci_pltfm_ops; |
153 if (pdata) | 153 if (pdata) { |
154 host->quirks = pdata->quirks; | 154 host->quirks = pdata->quirks; |
155 host->quirks2 = pdata->quirks2; 156 } 157 |
|
155 host->irq = platform_get_irq(pdev, 0); 156 157 if (!request_mem_region(iomem->start, resource_size(iomem), 158 mmc_hostname(host->mmc))) { 159 dev_err(&pdev->dev, "cannot request region\n"); 160 ret = -EBUSY; 161 goto err_request; 162 } --- 111 unchanged lines hidden --- | 158 host->irq = platform_get_irq(pdev, 0); 159 160 if (!request_mem_region(iomem->start, resource_size(iomem), 161 mmc_hostname(host->mmc))) { 162 dev_err(&pdev->dev, "cannot request region\n"); 163 ret = -EBUSY; 164 goto err_request; 165 } --- 111 unchanged lines hidden --- |