Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310216
b: refs/heads/master
c: a4f2035
h: refs/heads/master
v: v3
  • Loading branch information
John Crispin authored and David Woodhouse committed May 14, 2012
1 parent 3c4ef05 commit 692d3d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb08bc108628493fb45d02da81cd201b6a42391c
refs/heads/master: a4f203512be974dbd7425f8f1d3d40720bf36997
21 changes: 15 additions & 6 deletions trunk/drivers/mtd/nand/plat_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ static const char *part_probe_types[] = { "cmdlinepart", NULL };
static int __devinit plat_nand_probe(struct platform_device *pdev)
{
struct platform_nand_data *pdata = pdev->dev.platform_data;
struct mtd_part_parser_data ppdata;
struct plat_nand_data *data;
struct resource *res;
const char **part_types;
Expand Down Expand Up @@ -103,7 +104,8 @@ static int __devinit plat_nand_probe(struct platform_device *pdev)

part_types = pdata->chip.part_probe_types ? : part_probe_types;

err = mtd_device_parse_register(&data->mtd, part_types, NULL,
ppdata.of_node = pdev->dev.of_node;
err = mtd_device_parse_register(&data->mtd, part_types, &ppdata,
pdata->chip.partitions,
pdata->chip.nr_partitions);

Expand Down Expand Up @@ -144,12 +146,19 @@ static int __devexit plat_nand_remove(struct platform_device *pdev)
return 0;
}

static const struct of_device_id plat_nand_match[] = {
{ .compatible = "gen_nand" },
{},
};
MODULE_DEVICE_TABLE(of, plat_nand_match);

static struct platform_driver plat_nand_driver = {
.probe = plat_nand_probe,
.remove = __devexit_p(plat_nand_remove),
.driver = {
.name = "gen_nand",
.owner = THIS_MODULE,
.probe = plat_nand_probe,
.remove = __devexit_p(plat_nand_remove),
.driver = {
.name = "gen_nand",
.owner = THIS_MODULE,
.of_match_table = plat_nand_match,
},
};

Expand Down

0 comments on commit 692d3d2

Please sign in to comment.