]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Tweak device_is_on_pci_bus() for code size
authorSimon Glass <sjg@chromium.org>
Tue, 26 Sep 2023 14:14:57 +0000 (08:14 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2023 18:38:13 +0000 (14:38 -0400)
commit61fc132051740e0378a5e71f3db6cb1581e970fe
treeb35fc3d4f145137d7ff88d7d2856c65c30f3c553
parent7f5ff034c32acd4481f4d6ce8118542f71c91b75
dm: core: Tweak device_is_on_pci_bus() for code size

This function cannot return true if PCI is not enabled, since no PCI
devices will have been bound. Add a check for this to reduce code size
where it is used.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/dm/device.h