Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258803
b: refs/heads/master
c: 17e86d3
h: refs/heads/master
i:
  258801: 8450588
  258799: 7cda05b
v: v3
  • Loading branch information
Banajit Goswami authored and Kukjin Kim committed Jul 20, 2011
1 parent b8dbc44 commit d664178
Show file tree
Hide file tree
Showing 2 changed files with 4 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: b19952ad9e2c5f9b16b12a919558226ce6a5e0ea
refs/heads/master: 17e86d3879d589fce4c457bfb9a2029f883fb2cb
9 changes: 3 additions & 6 deletions trunk/arch/arm/plat-samsung/dev-nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ void __init s3c_nand_set_platdata(struct s3c2410_platform_nand *nand)
* time then there is little chance the system is going to run.
*/

npd = kmemdup(nand, sizeof(struct s3c2410_platform_nand), GFP_KERNEL);
if (!npd) {
printk(KERN_ERR "%s: failed copying platform data\n", __func__);
npd = s3c_set_platdata(nand, sizeof(struct s3c2410_platform_nand),
&s3c_device_nand);
if (!npd)
return;
}

/* now see if we need to copy any of the nand set data */

Expand Down Expand Up @@ -123,6 +122,4 @@ void __init s3c_nand_set_platdata(struct s3c2410_platform_nand *nand)
to++;
}
}

s3c_device_nand.dev.platform_data = npd;
}

0 comments on commit d664178

Please sign in to comment.