projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b84def
)
mmc: cb710: use to_platform_device()
author
Geliang Tang
<geliangtang@163.com>
Sun, 27 Dec 2015 13:15:43 +0000
(21:15 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 5 Jan 2016 17:04:57 +0000
(18:04 +0100)
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>
drivers/mmc/host/cb710-mmc.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/cb710-mmc.h
b/drivers/mmc/host/cb710-mmc.h
index 8984ec878fc9a05849d54728db15d6b4c7853cbd..8ecd9e56636a1b2e873cae16cd4b6821b15adeeb 100644
(file)
--- 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);
}