memory: tegra: Make use of the helper function devm_add_action_or_reset()
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 22 Sep 2021 13:00:01 +0000 (21:00 +0800)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 24 Sep 2021 11:18:47 +0000 (13:18 +0200)
commit1d8e0223bb52071ffc59391f0ebefa06ce5643d7
tree329c21a84e482a3021e3c73ab3a6d8b4fe80ded0
parent13324edbe9269e6fbca4d0f5146b18ef8478c958
memory: tegra: Make use of the helper function devm_add_action_or_reset()

Use devm_add_action_or_reset() instead of devm_add_action() to simplify
the error handling.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Link: https://lore.kernel.org/r/20210922130002.586-1-caihuoqing@baidu.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/mc.c