diff options
author | Saravana Kannan <[email protected]> | 2023-02-06 17:42:01 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-02-08 13:37:55 +0100 |
commit | 4a032827daa89350365166b19d14d82fe8219128 (patch) | |
tree | e0fc5dc2fb6b75e63e1ecc16c99c793ae92697a6 /lib/string_helpers.c | |
parent | 3fb16866b51ded6c016b664caad53f8d4fd9dc56 (diff) |
of: property: Simplify of_link_to_phandle()
The driver core now:
- Has the parent device of a supplier pick up the consumers if the
supplier never has a device created for it.
- Ignores a supplier if the supplier has no parent device and will never
be probed by a driver
And already prevents creating a device link with the consumer as a
supplier of a parent.
So, we no longer need to find the "compatible" node of the supplier or
do any other checks in of_link_to_phandle(). We simply need to make sure
that the supplier is available in DT.
Signed-off-by: Saravana Kannan <[email protected]>
Tested-by: Colin Foster <[email protected]>
Tested-by: Sudeep Holla <[email protected]>
Tested-by: Douglas Anderson <[email protected]>
Tested-by: Geert Uytterhoeven <[email protected]>
Tested-by: Luca Weiss <[email protected]> # qcom/sm7225-fairphone-fp4
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions