diff options
| author | Greg Kroah-Hartman <[email protected]> | 2023-01-31 09:24:59 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-02-01 14:08:10 +0100 |
| commit | 40b3880dc29b89c39139eba11eba2b3107dc2e38 (patch) | |
| tree | 2891fbe2e13c5dfe8a96894c46efbcb96c7954ae /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | b4ce0bf7ab02c46676276ca1e8d4c5789528b439 (diff) | |
driver core: platform: simplify __platform_driver_probe()
__platform_driver_probe() pokes around in some bus and driver private
lists and locks in a way that is not needed at all. The code only wants
to know if a device was bound to the driver that was registered, so walk
all devices on the bus to see if there was a match. If there is not a
match, return an error. This is the same logic as was originally
present, but just done in a simpler and more obvious way that is not a
layering violation.
Cc: "Rafael J. Wysocki" <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions