diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 17:18:53 +0900 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 21:34:34 +0100 |
commit | e09f7f992833ed73f1afc5eaa7cc4d5b10b04b7c (patch) | |
tree | 9c748313a954d77789024388c4b539734577669b /drivers/mtd/onenand/generic.c | |
parent | 453810b79571ff6622a481f0556fc4972f87a24f (diff) | |
download | op-kernel-dev-e09f7f992833ed73f1afc5eaa7cc4d5b10b04b7c.zip op-kernel-dev-e09f7f992833ed73f1afc5eaa7cc4d5b10b04b7c.tar.gz |
mtd: onenand: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/onenand/generic.c')
-rw-r--r-- | drivers/mtd/onenand/generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c index 42520a3..63699ff 100644 --- a/drivers/mtd/onenand/generic.c +++ b/drivers/mtd/onenand/generic.c @@ -38,7 +38,7 @@ struct onenand_info { static int generic_onenand_probe(struct platform_device *pdev) { struct onenand_info *info; - struct onenand_platform_data *pdata = pdev->dev.platform_data; + struct onenand_platform_data *pdata = dev_get_platdata(&pdev->dev); struct resource *res = pdev->resource; unsigned long size = resource_size(res); int err; |