From: Christian Melki Date: Mon, 7 Jun 2021 09:21:15 +0000 (+0200) Subject: disk/part_dos.c: Fix a variable typo in write_mbr_partitions() X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=c7d1b1890880ee64786b92a1b95ba9ecb4694997;p=u-boot.git 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 --- 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; }