]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: fix logic of lists_bind_fdt()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 11 Jul 2022 06:25:33 +0000 (08:25 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 26 Jul 2022 08:30:56 +0000 (02:30 -0600)
commitde84a4f0eed297afa752ee46c072a99834dde806
tree0aa6851ee572cb92e3dc5a1edc90baed24ed3779
parent9396116d2d1d6d87a8d96f2c4b50ae1019d6cdf0
dm: fix logic of lists_bind_fdt()

If parameter drv of lists_bind_fdt() is specified, we shall bind only to
this very driver and to no other.

If the driver drv has an of_match property, we shall only bind to the
driver if it matches the compatible string of the device.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/lists.c