summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-02-07 10:49:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-08 09:13:19 +0100
commit76bfcf78702c32271f8c278eb106b422b998d5e7 (patch)
treed629b226db85fd24057178ad180d3c881915fb7f /arch/arm/mach-omap
parent62295dfdb43eb421b7c8b119994df12b4e4879ef (diff)
downloadbarebox-76bfcf78702c32271f8c278eb106b422b998d5e7.tar.gz
barebox-76bfcf78702c32271f8c278eb106b422b998d5e7.tar.xz
rename cdev_open() -> cdev_open_by_name()
The cdev_* functions normally take a struct cdev * argument, with the exception of cdev_open(). Rename cdev_open() to cdev_open_by_name() to be able to implement cdev_open() with the expected semantics in the next step. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220207094953.949868-3-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap')
-rw-r--r--arch/arm/mach-omap/xload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap/xload.c b/arch/arm/mach-omap/xload.c
index 0fe78883d1..af9abf38b5 100644
--- a/arch/arm/mach-omap/xload.c
+++ b/arch/arm/mach-omap/xload.c
@@ -38,7 +38,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) {
printf("failed to open %s\n", name);
return NULL;
@@ -86,7 +86,7 @@ static void *read_mtd_barebox(const char *partition)
to = xmalloc(size);
- cdev = cdev_open(partition, O_RDONLY);
+ cdev = cdev_open_by_name(partition, O_RDONLY);
if (!cdev) {
printf("failed to open partition\n");
return NULL;