summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-02-18 12:59:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-18 12:59:21 +0100
commit9481ada6ad354cfe38418354afee48ceca438c05 (patch)
treee030cda328c36643b1c5085c9be7c5f2210f579b /lib
parenta32d0e18fb1bc738ae1aa79d8713b178c977988c (diff)
parenteedf7a3b5f990dff893b54740ceea917c24e2cb7 (diff)
downloadbarebox-9481ada6ad354cfe38418354afee48ceca438c05.tar.gz
barebox-9481ada6ad354cfe38418354afee48ceca438c05.tar.xz
Merge branch 'for-next/efi'
Diffstat (limited to 'lib')
-rw-r--r--lib/bootstrap/devfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bootstrap/devfs.c b/lib/bootstrap/devfs.c
index 6d28b1cb4d..873c4b0170 100644
--- a/lib/bootstrap/devfs.c
+++ b/lib/bootstrap/devfs.c
@@ -32,7 +32,7 @@ static void *read_image_head(const char *name)
struct cdev *cdev;
int ret;
- cdev = cdev_open(name, O_RDONLY);
+ cdev = cdev_open_by_name(name, O_RDONLY);
if (!cdev) {
bootstrap_err("failed to open partition\n");
goto free_header;
@@ -124,7 +124,7 @@ void* bootstrap_read_devfs(char *devname, bool use_bb, int offset,
to = xmalloc(size);
- cdev = cdev_open(partname, O_RDONLY);
+ cdev = cdev_open_by_name(partname, O_RDONLY);
if (!cdev) {
bootstrap_err("%s: failed to open %s\n", devname, partname);
goto free_memory;