summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorChristian Melki <christian.melki@t2data.com>2021-06-07 11:21:15 +0200
committerTom Rini <trini@konsulko.com>2021-06-22 13:58:08 -0400
commitc7d1b1890880ee64786b92a1b95ba9ecb4694997 (patch)
tree2a383168de8bb4b1e95bbe78519c94d856f0dc87 /disk
parent1ce892cb1ce970d8ee6ffcecc22351c84e67fca4 (diff)
downloadu-boot-c7d1b1890880ee64786b92a1b95ba9ecb4694997.tar.gz
u-boot-c7d1b1890880ee64786b92a1b95ba9ecb4694997.tar.bz2
u-boot-c7d1b1890880ee64786b92a1b95ba9ecb4694997.zip
disk/part_dos.c: Fix a variable typo in write_mbr_partitions()
This function is passed *dev not *dev_desc, so pass the right name to part_init(). Fixes: f14c5ee5ab8b ("disk: part_dos: update partition table entries after write") Signed-off-by: Christian Melki <christian.melki@t2data.com>
Diffstat (limited to 'disk')
-rw-r--r--disk/part_dos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk/part_dos.c b/disk/part_dos.c
index 60addc6e00..9e29aa6583 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -424,7 +424,7 @@ int write_mbr_partitions(struct blk_desc *dev,
}
/* Update the partition table entries*/
- part_init(dev_desc);
+ part_init(dev);
return 0;
}