Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332710
b: refs/heads/master
c: da3888c
h: refs/heads/master
v: v3
  • Loading branch information
John Crispin authored and David Woodhouse committed Sep 29, 2012
1 parent bc332fe commit 75755ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8c4bf26109878d39b5e6d1425b8c9cd562ef525
refs/heads/master: da3888cb84065a03d30b5f729b405e573bd0d66e
5 changes: 5 additions & 0 deletions trunk/drivers/mtd/nand/plat_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ static int __devinit plat_nand_probe(struct platform_device *pdev)
const char **part_types;
int err = 0;

if (!pdata) {
dev_err(&pdev->dev, "platform_nand_data is missing\n");
return -EINVAL;
}

if (pdata->chip.nr_chips < 1) {
dev_err(&pdev->dev, "invalid number of chips specified\n");
return -EINVAL;
Expand Down

0 comments on commit 75755ce

Please sign in to comment.