Skip to content
Snippets Groups Projects
Commit 02c07b37 authored by Simon Glass's avatar Simon Glass
Browse files

dm: core: Add a uclass pre_probe() method for devices


Some uclasses want to set up a device before it is probed. Add a method
for this.

An example is with PCI, where a PCI uclass wants to set up its private
data for later use. This allows the device's uclass() method to make calls
whcih use that data (for example, read PCI memory regions from device
tree, set up bus numbers).

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 02eeb1bb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment