diff options
| author | Thomas Abraham <thomas.abraham@linaro.org> | 2012-09-17 14:16:35 -0400 |
|---|---|---|
| committer | Chris Ball <cjb@laptop.org> | 2012-10-03 10:05:13 -0400 |
| commit | 4a90920c6b39a3af26470cfc26b8e5ec9c4e7f3c (patch) | |
| tree | 1813a9972f2ec1c8129c68eb969ea7066ddfaec3 /include/linux/mmc | |
| parent | 950d56acce5d401f477b91d0177605b543d63d07 (diff) | |
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 'include/linux/mmc')
| -rw-r--r-- | include/linux/mmc/dw_mmc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mmc/dw_mmc.h b/include/linux/mmc/dw_mmc.h index 7a7ebd367cfd..a37a573fa13c 100644 --- a/include/linux/mmc/dw_mmc.h +++ b/include/linux/mmc/dw_mmc.h | |||
| @@ -156,7 +156,7 @@ struct dw_mci { | |||
| 156 | u32 fifoth_val; | 156 | u32 fifoth_val; |
| 157 | u16 verid; | 157 | u16 verid; |
| 158 | u16 data_offset; | 158 | u16 data_offset; |
| 159 | struct device dev; | 159 | struct device *dev; |
| 160 | struct dw_mci_board *pdata; | 160 | struct dw_mci_board *pdata; |
| 161 | struct dw_mci_slot *slot[MAX_MCI_SLOTS]; | 161 | struct dw_mci_slot *slot[MAX_MCI_SLOTS]; |
| 162 | 162 | ||
