diff options
author | Yong Wu <[email protected]> | 2022-10-18 10:42:53 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-12-05 11:46:01 +0100 |
commit | dcb40e9fcce9bd251eaff19f3724131db522846c (patch) | |
tree | 4b51bf3f6a34fa77c3cb57efd95429bf1196e5c0 /tools/perf/scripts/python/powerpc-hcalls.py | |
parent | 3cd0e4a34d5a9bcff90e0c104800700346e42658 (diff) |
iommu/mediatek: Add platform_device_put for recovering the device refcnt
Add platform_device_put to match with of_find_device_by_node.
Meanwhile, I add a new variable "pcommdev" which is for smi common device.
Otherwise, "platform_device_put(plarbdev)" for smi-common dev may be not
readable. And add a checking for whether pcommdev is NULL.
Fixes: d2e9a1102cfc ("iommu/mediatek: Contain MM IOMMU flow with the MM TYPE")
Signed-off-by: Yong Wu <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Reviewed-by: Matthias Brugger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions