diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-27 14:15:43 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-01-05 18:04:57 +0100 |
commit | 12dd7fe2967a7e60e689e7e9a016b8288c8ea756 (patch) | |
tree | e25ed8aeb40b67a517e9620e34bb9e972f21ae59 /drivers/mmc | |
parent | mmc: tegra: use correct accessor for misc ctrl register (diff) | |
download | linux-12dd7fe2967a7e60e689e7e9a016b8288c8ea756.tar.xz linux-12dd7fe2967a7e60e689e7e9a016b8288c8ea756.zip |
mmc: cb710: use to_platform_device()
Use to_platform_device() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/cb710-mmc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/host/cb710-mmc.h b/drivers/mmc/host/cb710-mmc.h index 8984ec878fc9..8ecd9e56636a 100644 --- a/drivers/mmc/host/cb710-mmc.h +++ b/drivers/mmc/host/cb710-mmc.h @@ -29,8 +29,7 @@ static inline struct mmc_host *cb710_slot_to_mmc(struct cb710_slot *slot) static inline struct cb710_slot *cb710_mmc_to_slot(struct mmc_host *mmc) { - struct platform_device *pdev = container_of(mmc_dev(mmc), - struct platform_device, dev); + struct platform_device *pdev = to_platform_device(mmc_dev(mmc)); return cb710_pdev_to_slot(pdev); } |