Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261132
b: refs/heads/master
c: a4d2177
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo committed Jul 27, 2011
1 parent 98d84c3 commit 6ce4d50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 57ed3314e0bfa90ea63c63b8d3038814e9d98a20
refs/heads/master: a4d2177f00a5252d825236c5124bc1e9918bdb41
3 changes: 2 additions & 1 deletion trunk/drivers/mmc/host/sdhci-pltfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
{
struct sdhci_host *host;
struct sdhci_pltfm_host *pltfm_host;
struct device_node *np = pdev->dev.of_node;
struct resource *iomem;
int ret;

Expand All @@ -98,7 +99,7 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
dev_err(&pdev->dev, "Invalid iomem size!\n");

/* Some PCI-based MFD need the parent here */
if (pdev->dev.parent != &platform_bus)
if (pdev->dev.parent != &platform_bus && !np)
host = sdhci_alloc_host(pdev->dev.parent, sizeof(*pltfm_host));
else
host = sdhci_alloc_host(&pdev->dev, sizeof(*pltfm_host));
Expand Down

0 comments on commit 6ce4d50

Please sign in to comment.