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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user