summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-01-03 11:16:28 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-01-08 13:34:27 +0100
commitffe27a23a67559e192e0ffbc94db9522cbb2abaa (patch)
tree2b4e3453b97fed5e6a61bcacf34ba165f29ff42e /lib
parent7fc1848090124794541a61a1901e289aae19e325 (diff)
downloadbarebox-ffe27a23a67559e192e0ffbc94db9522cbb2abaa.tar.gz
barebox-ffe27a23a67559e192e0ffbc94db9522cbb2abaa.tar.xz
cdev: export and use cdevfs_del_partition
Like what's the case with cdevfs_add_partition, a couple of users already have a cdev, so it's wasteful to get its name and do a lookup only to arrive at the same cdev. Export a cdevfs_del_partition that directly works on the cdev and start using it instead. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240103101629.2629497-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/bootstrap/devfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bootstrap/devfs.c b/lib/bootstrap/devfs.c
index b127b27c1d..b023da1f94 100644
--- a/lib/bootstrap/devfs.c
+++ b/lib/bootstrap/devfs.c
@@ -150,7 +150,7 @@ free_memory:
}
delete_devfs_partition:
- devfs_del_partition(partname);
+ cdevfs_del_partition(partition);
return result;
}