aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorJinjie Ruan <[email protected]>2024-09-12 17:17:01 +0800
committerMark Brown <[email protected]>2024-09-12 12:39:04 +0100
commit07f1eb718db281c3e0cdb068ea7d73c30921a81c (patch)
tree9fab05dc97f3415a8f127beba52b510f430ea266 /tools/perf/scripts/python/bin/export-to-postgresql-report
parentf10d52087cbe85dcff2af3dc94c5b9d06e6d4b9a (diff)
spi: geni-qcom: Use devm functions to simplify code
Use devm_pm_runtime_enable(), devm_request_irq() and devm_spi_register_controller() to simplify code. And also register a callback spi_geni_release_dma_chan() with devm_add_action_or_reset(), to release dma channel in both error and device detach path, which can make sure the release sequence is consistent with the original one. 1. Unregister spi controller. 2. Free the IRQ. 3. Free DMA chans 4. Disable runtime PM. So the remove function can also be removed. Reviewed-by: Douglas Anderson <[email protected]> Suggested-by: Doug Anderson <[email protected]> Signed-off-by: Jinjie Ruan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions