mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
dm: pci: Assign correct driver data when binding a driver
The correct driver data comes from the matching 'id' instead of 'find_id' in pci_find_and_bind_driver(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b3f96b4f99
commit
ed698aa7de
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ static int pci_find_and_bind_driver(struct udevice *parent,
|
||||||
if (ret)
|
if (ret)
|
||||||
goto error;
|
goto error;
|
||||||
debug("%s: Match found: %s\n", __func__, drv->name);
|
debug("%s: Match found: %s\n", __func__, drv->name);
|
||||||
dev->driver_data = find_id->driver_data;
|
dev->driver_data = id->driver_data;
|
||||||
*devp = dev;
|
*devp = dev;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue