Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219028
b: refs/heads/master
c: 012994f
h: refs/heads/master
v: v3
  • Loading branch information
Wolfram Sang authored and Chris Ball committed Oct 23, 2010
1 parent cfdc7a4 commit b6066f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2dfb579c7da171f6153cd58e8fbf7dcfe684778d
refs/heads/master: 012994f4fa5fc7663b51fa921c85c0a352339b24
8 changes: 5 additions & 3 deletions trunk/drivers/mmc/host/sdhci-pltfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,17 @@ static struct sdhci_ops sdhci_pltfm_ops = {

static int __devinit sdhci_pltfm_probe(struct platform_device *pdev)
{
struct sdhci_pltfm_data *pdata = pdev->dev.platform_data;
const struct platform_device_id *platid = platform_get_device_id(pdev);
struct sdhci_pltfm_data *pdata;
struct sdhci_host *host;
struct sdhci_pltfm_host *pltfm_host;
struct resource *iomem;
int ret;

if (!pdata && platid && platid->driver_data)
if (platid && platid->driver_data)
pdata = (void *)platid->driver_data;
else
pdata = pdev->dev.platform_data;

iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!iomem) {
Expand Down Expand Up @@ -109,7 +111,7 @@ static int __devinit sdhci_pltfm_probe(struct platform_device *pdev)
}

if (pdata && pdata->init) {
ret = pdata->init(host);
ret = pdata->init(host, pdata);
if (ret)
goto err_plat_init;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/mmc/sdhci-pltfm.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct sdhci_host;
struct sdhci_pltfm_data {
struct sdhci_ops *ops;
unsigned int quirks;
int (*init)(struct sdhci_host *host);
int (*init)(struct sdhci_host *host, struct sdhci_pltfm_data *pdata);
void (*exit)(struct sdhci_host *host);
};

Expand Down

0 comments on commit b6066f8

Please sign in to comment.