diff options
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 42520a39e7de..63699fffc96d 100644 --- a/drivers/mtd/onenand/generic.c +++ b/drivers/mtd/onenand/generic.c | |||
@@ -38,7 +38,7 @@ struct onenand_info { | |||
38 | static int generic_onenand_probe(struct platform_device *pdev) | 38 | static int generic_onenand_probe(struct platform_device *pdev) |
39 | { | 39 | { |
40 | struct onenand_info *info; | 40 | struct onenand_info *info; |
41 | struct onenand_platform_data *pdata = pdev->dev.platform_data; | 41 | struct onenand_platform_data *pdata = dev_get_platdata(&pdev->dev); |
42 | struct resource *res = pdev->resource; | 42 | struct resource *res = pdev->resource; |
43 | unsigned long size = resource_size(res); | 43 | unsigned long size = resource_size(res); |
44 | int err; | 44 | int err; |