projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: nand: use dev_get_platdata()
[deliverable/linux.git]
/
drivers
/
mtd
/
nand
/
orion_nand.c
diff --git
a/drivers/mtd/nand/orion_nand.c
b/drivers/mtd/nand/orion_nand.c
index 46f308df84389f7b1def55f06deb501936f45f9d..a393a5b6ce1e5028155a415ae33db88067a7bfff 100644
(file)
--- a/
drivers/mtd/nand/orion_nand.c
+++ b/
drivers/mtd/nand/orion_nand.c
@@
-130,8
+130,9
@@
static int __init orion_nand_probe(struct platform_device *pdev)
if (!of_property_read_u32(pdev->dev.of_node,
"chip-delay", &val))
board->chip_delay = (u8)val;
- } else
- board = pdev->dev.platform_data;
+ } else {
+ board = dev_get_platdata(&pdev->dev);
+ }
mtd->priv = nc;
mtd->owner = THIS_MODULE;
This page took
0.027034 seconds
and
5
git commands to generate.