diff options
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch')
-rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch new file mode 100644 index 000000000..b52e20789 --- /dev/null +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | --- a/ubi-utils/libubi.c 2012-05-01 01:57:51.000000000 +0200 | ||
2 | +++ b/ubi-utils/libubi.c 2012-05-01 01:55:14.000000000 +0200 | ||
3 | @@ -686,7 +706,7 @@ | ||
4 | * success and %-1 in case of failure. @r->ubi_num contains newly created UBI | ||
5 | * device number. | ||
6 | */ | ||
7 | -static int do_attach(const char *node, const struct ubi_attach_req *r) | ||
8 | +static int do_attach(const char *node, struct ubi_attach_req *r) | ||
9 | { | ||
10 | int fd, ret; | ||
11 | |||
12 | @@ -1346,13 +1346,13 @@ | ||
13 | |||
14 | int ubi_set_property(int fd, uint8_t property, uint64_t value) | ||
15 | { | ||
16 | - struct ubi_set_prop_req r; | ||
17 | + struct ubi_set_vol_prop_req r; | ||
18 | |||
19 | - memset(&r, 0, sizeof(struct ubi_set_prop_req)); | ||
20 | + memset(&r, 0, sizeof(struct ubi_set_vol_prop_req)); | ||
21 | r.property = property; | ||
22 | r.value = value; | ||
23 | |||
24 | - return ioctl(fd, UBI_IOCSETPROP, &r); | ||
25 | + return ioctl(fd, UBI_IOCSETVOLPROP, &r); | ||
26 | } | ||
27 | |||
28 | int ubi_leb_unmap(int fd, int lnum) | ||