dm: pci: Assign correct driver data when binding a driver
authorBin Meng <bmeng.cn@gmail.com>
Fri, 3 Aug 2018 08:14:44 +0000 (01:14 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Aug 2018 11:49:31 +0000 (12:49 +0100)
commited698aa7dee0fd078b4eb2fc54e64cfeaa68061a
tree88f9de722c46f0eeccf3f7a5e18433cd245369a0
parentb3f96b4f998997bbe93a4d60d754a5beb381de61
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>
drivers/pci/pci-uclass.c