|
@@ -730,11 +730,14 @@ static int s3c2410_nand_add_partition(struct s3c2410_nand_info *info,
|
|
|
struct s3c2410_nand_mtd *mtd,
|
|
|
struct s3c2410_nand_set *set)
|
|
|
{
|
|
|
- if (set)
|
|
|
+ if (set) {
|
|
|
mtd->mtd.name = set->name;
|
|
|
|
|
|
- return mtd_device_parse_register(&mtd->mtd, NULL, NULL,
|
|
|
+ return mtd_device_parse_register(&mtd->mtd, NULL, NULL,
|
|
|
set->partitions, set->nr_partitions);
|
|
|
+ }
|
|
|
+
|
|
|
+ return -ENODEV;
|
|
|
}
|
|
|
|
|
|
/**
|