Skip to content
Commit 9ad36924 authored by Benson Leung's avatar Benson Leung Committed by Olof Johansson
Browse files

platform/chrome: chromeos_laptop - Use deferred probing



Further refactor chromeos_laptop, adding a probe function.
Init will call dmi_check_system, but will only use the match to select
a chromeos_laptop structure of the current board.

Probe will add the devices, and on errors return -EPROBE_DEFER.
If i2c adapters are loaded after chromeos_laptop inits, the deferred
probe will instantiate the peripherals when the bus appears.

Signed-off-by: default avatarBenson Leung <bleung@chromium.org>
Reviewed-by: default avatarAaron Durbin <adurbin@chromium.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent ec199dd5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment