Skip to content
Commit d79d3244 authored by Patrick Pannuto's avatar Patrick Pannuto Committed by Greg Kroah-Hartman
Browse files

driver core: platform: Use drv->driver.bus instead of assuming platform_bus_type



In theory (although not *yet* in practice), a driver being passed
to platform_driver_probe might have driver.bus set to something
other than platform_bus_type. Locking drv->driver.bus is always
correct.

Signed-off-by: default avatarPatrick Pannuto <ppannuto@codeaurora.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6a5c083d
Loading
Loading
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