mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. We also should make sure to drop the reference to the device taken by of_find_device_by_node() when returning error. Signed-off-by: Peng Hao <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>