]> git.dujemihanovic.xyz Git - u-boot.git/commit
ide: Use a single local blk_desc for ide_ident()
authorSimon Glass <sjg@chromium.org>
Tue, 25 Apr 2023 16:54:50 +0000 (10:54 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 27 Apr 2023 17:51:07 +0000 (13:51 -0400)
commitd7d57436e7a65cb724d04d987cd00428aea995a5
tree99068cf1f1952039d6fd9eca95f105871530cd9d
parent960831180380e8060d8a6af5317ae756b9f6d186
ide: Use a single local blk_desc for ide_ident()

We only use one member of the ide_dev_desc[] array at a time and it does
not stick around outside ide_probe(). Use a single element instead.

Copy over the missing members of blk_desc at the same, since this was
missing from the previous code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 68e6f221ed0 ("block: ide: Fix block read/write with driver model")
drivers/block/ide.c