Skip to content
Commit 61fc1320 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 7f5ff034
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment