Skip to content
Unverified Commit 59ebbe40 authored by Tian Tao's avatar Tian Tao Committed by Mark Brown
Browse files

spi: simplify devm_spi_register_controller



Use devm_add_action_or_reset() instead of devres_alloc() and
devres_add(), which works the same. This will simplify the
code. There is no functional changes.

Signed-off-by: default avatarTian Tao <tiantao6@hisilicon.com>
Signed-off-by: default avatarYicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/1617843307-53853-1-git-send-email-tiantao6@hisilicon.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9b844b08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment