summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/cb710-mmc.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-06-03 08:41:03 +0400
committerChris Ball <cjb@laptop.org>2013-06-27 19:13:02 +0400
commit6e2c0f3ffbb54547edcf1dd92a120ff37988a4d8 (patch)
tree7bd6cb1a14d17f91a6a669c48bf9a837b786b599 /drivers/mmc/host/cb710-mmc.c
parent7913ae7d10d82bf9d9af6be6c20281fceb695ec0 (diff)
downloadlinux-6e2c0f3ffbb54547edcf1dd92a120ff37988a4d8.tar.xz
mmc: host: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/cb710-mmc.c')
-rw-r--r--drivers/mmc/host/cb710-mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/cb710-mmc.c b/drivers/mmc/host/cb710-mmc.c
index 777ca2046b27..9d6e2b844404 100644
--- a/drivers/mmc/host/cb710-mmc.c
+++ b/drivers/mmc/host/cb710-mmc.c
@@ -703,7 +703,7 @@ static int cb710_mmc_init(struct platform_device *pdev)
if (!mmc)
return -ENOMEM;
- dev_set_drvdata(&pdev->dev, mmc);
+ platform_set_drvdata(pdev, mmc);
/* harmless (maybe) magic */
pci_read_config_dword(chip->pdev, 0x48, &val);