dm: Use dm_scan_fdt_dev() directly where possible
authorSimon Glass <sjg@chromium.org>
Tue, 5 Jul 2016 23:10:10 +0000 (17:10 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 27 Jul 2016 20:15:54 +0000 (14:15 -0600)
commit911954859d6dece49c3e4835faea004cfe392506
tree79431b5419e1366009f331a3d1a604b64f14ccff
parent2e3f1ff63f50f36e74d46f939823241856ebf1bd
dm: Use dm_scan_fdt_dev() directly where possible

Quite a few places have a bind() method which just calls dm_scan_fdt_dev().
We may as well call dm_scan_fdt_dev() directly. Update the code to do this.

Signed-off-by: Simon Glass <sjg@chromium.org>
17 files changed:
arch/x86/lib/lpc-uclass.c
common/usb_hub.c
drivers/i2c/i2c-uclass.c
drivers/misc/cros_ec.c
drivers/pch/pch-uclass.c
drivers/pci/pci-uclass.c
drivers/pci/pci_sandbox.c
drivers/pinctrl/pinctrl_pic32.c
drivers/pinctrl/rockchip/pinctrl_rk3036.c
drivers/pinctrl/rockchip/pinctrl_rk3288.c
drivers/power/pmic/pm8916.c
drivers/spi/spi-uclass.c
drivers/spmi/spmi-uclass.c
drivers/usb/emul/usb-emul-uclass.c
drivers/usb/host/usb-uclass.c
test/dm/i2c.c
test/dm/spi.c