aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdpart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r--drivers/mtd/mtdpart.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 79e3689f1e16..1047ff0a4f55 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -720,19 +720,19 @@ int parse_mtd_partitions(struct mtd_info *master, const char **types,
720} 720}
721EXPORT_SYMBOL_GPL(parse_mtd_partitions); 721EXPORT_SYMBOL_GPL(parse_mtd_partitions);
722 722
723int mtd_is_master(struct mtd_info *mtd) 723int mtd_is_partition(struct mtd_info *mtd)
724{ 724{
725 struct mtd_part *part; 725 struct mtd_part *part;
726 int nopart = 0; 726 int ispart = 0;
727 727
728 mutex_lock(&mtd_partitions_mutex); 728 mutex_lock(&mtd_partitions_mutex);
729 list_for_each_entry(part, &mtd_partitions, list) 729 list_for_each_entry(part, &mtd_partitions, list)
730 if (&part->mtd == mtd) { 730 if (&part->mtd == mtd) {
731 nopart = 1; 731 ispart = 1;
732 break; 732 break;
733 } 733 }
734 mutex_unlock(&mtd_partitions_mutex); 734 mutex_unlock(&mtd_partitions_mutex);
735 735
736 return nopart; 736 return ispart;
737} 737}
738EXPORT_SYMBOL_GPL(mtd_is_master); 738EXPORT_SYMBOL_GPL(mtd_is_partition);