diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mxs/ocotp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap/xload.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mxs/ocotp.c b/arch/arm/mach-mxs/ocotp.c index 5f78d9d773..9bcd913cc1 100644 --- a/arch/arm/mach-mxs/ocotp.c +++ b/arch/arm/mach-mxs/ocotp.c @@ -229,7 +229,7 @@ int mxs_ocotp_read(void *buf, int count, int offset) struct cdev *cdev; int ret; - cdev = cdev_open(DRIVERNAME, O_RDONLY); + cdev = cdev_open_by_name(DRIVERNAME, O_RDONLY); if (!cdev) return -ENODEV; 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; |