projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3f96b4
)
dm: pci: Assign correct driver data when binding a driver
author
Bin Meng
<bmeng.cn@gmail.com>
Fri, 3 Aug 2018 08:14:44 +0000
(
01:14
-0700)
committer
Simon Glass
<sjg@chromium.org>
Wed, 8 Aug 2018 11:49:31 +0000
(12:49 +0100)
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>
drivers/pci/pci-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pci-uclass.c
b/drivers/pci/pci-uclass.c
index 28ea8c5d4eea8bd3fb2b8099be2c6c73c7af68f6..5eb68415cd7c3dbdfc7e021d742d1a78feaab9f3 100644
(file)
--- a/
drivers/pci/pci-uclass.c
+++ b/
drivers/pci/pci-uclass.c
@@
-690,7
+690,7
@@
static int pci_find_and_bind_driver(struct udevice *parent,
if (ret)
goto error;
debug("%s: Match found: %s\n", __func__, drv->name);
- dev->driver_data =
find_
id->driver_data;
+ dev->driver_data = id->driver_data;
*devp = dev;
return 0;
}