mmc: dw_mmc: convert copy of struct device in struct dw_mci to a reference
authorThomas Abraham <thomas.abraham@linaro.org>
Mon, 17 Sep 2012 18:16:35 +0000 (18:16 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 3 Oct 2012 14:05:13 +0000 (10:05 -0400)
commit4a90920c6b39a3af26470cfc26b8e5ec9c4e7f3c
tree1813a9972f2ec1c8129c68eb969ea7066ddfaec3
parent950d56acce5d401f477b91d0177605b543d63d07
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>
drivers/mmc/host/dw_mmc-pci.c
drivers/mmc/host/dw_mmc-pltfm.c
drivers/mmc/host/dw_mmc.c
include/linux/mmc/dw_mmc.h