[PATCH 2/3] partition: use symlink for named partition

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Oct 18 12:33:11 EDT 2013


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 common/partitions.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/common/partitions.c b/common/partitions.c
index 694c6f6..b6c9819 100644
--- a/common/partitions.c
+++ b/common/partitions.c
@@ -76,8 +76,7 @@ static int register_one_partition(struct block_device *blk,
 
 	dev_dbg(blk->dev, "Registering partition %s on drive %s\n",
 				partition_name, blk->cdev.name);
-	cdev = devfs_add_partition(blk->cdev.name,
-				start, size, 0, partition_name);
+	cdev = devfs_add_symlink(partition_name, cdev);
 
 	if (IS_ERR(cdev))
 		dev_warn(blk->dev, "Registering partition %s on drive %s failed\n",
-- 
1.8.4.rc3




More information about the barebox mailing list