diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2012-09-17 20:16:35 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-10-03 16:05:13 +0200 |
commit | 4a90920c6b39a3af26470cfc26b8e5ec9c4e7f3c (patch) | |
tree | 1813a9972f2ec1c8129c68eb969ea7066ddfaec3 /drivers/mmc/host/dw_mmc-pci.c | |
parent | mmc: support BKOPS feature for eMMC (diff) | |
download | linux-4a90920c6b39a3af26470cfc26b8e5ec9c4e7f3c.tar.xz linux-4a90920c6b39a3af26470cfc26b8e5ec9c4e7f3c.zip |
mmc: dw_mmc: convert copy of struct device in struct dw_mci to a reference
The 'struct dw_mci' maintains a copy of the pdev->dev instance instead of
maintaining a reference to that 'struct device' instance. Any resource
allocated using the device resource management kernel API with the instance
of 'struct device' in 'struct dw_mci' is then incorrect. Fix this by
converting the copy of 'struct device' in 'struct dw_mci' to a reference.
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc-pci.c')
-rw-r--r-- | drivers/mmc/host/dw_mmc-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c index f5ab03d32fb9..edb37e9135ae 100644 --- a/drivers/mmc/host/dw_mmc-pci.c +++ b/drivers/mmc/host/dw_mmc-pci.c @@ -59,7 +59,7 @@ static int __devinit dw_mci_pci_probe(struct pci_dev *pdev, host->irq = pdev->irq; host->irq_flags = IRQF_SHARED; - host->dev = pdev->dev; + host->dev = &pdev->dev; host->pdata = &pci_board_data; host->regs = pci_iomap(pdev, PCI_BAR_NO, COMPLETE_BAR); |