diff options
Diffstat (limited to 'drivers/mtd/nand/s3c2410.c')
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 79ded48e7427..df954b4dcba2 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c | |||
@@ -730,11 +730,14 @@ static int s3c2410_nand_add_partition(struct s3c2410_nand_info *info, | |||
730 | struct s3c2410_nand_mtd *mtd, | 730 | struct s3c2410_nand_mtd *mtd, |
731 | struct s3c2410_nand_set *set) | 731 | struct s3c2410_nand_set *set) |
732 | { | 732 | { |
733 | if (set) | 733 | if (set) { |
734 | mtd->mtd.name = set->name; | 734 | mtd->mtd.name = set->name; |
735 | 735 | ||
736 | return mtd_device_parse_register(&mtd->mtd, NULL, NULL, | 736 | return mtd_device_parse_register(&mtd->mtd, NULL, NULL, |
737 | set->partitions, set->nr_partitions); | 737 | set->partitions, set->nr_partitions); |
738 | } | ||
739 | |||
740 | return -ENODEV; | ||
738 | } | 741 | } |
739 | 742 | ||
740 | /** | 743 | /** |