staging: fieldbus: simplify devm_anybuss_host_common_probe
authorTian Tao <tiantao6@hisilicon.com>
Tue, 13 Apr 2021 00:53:03 +0000 (08:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Apr 2021 07:53:41 +0000 (09:53 +0200)
commit07ff20cf172f31f0dfbc456662f20339767c69fd
tree321f8e8818c3974e18e673a3635b2c155f0201aa
parentcc444aa522b18069eba204c9b5e3cf5a69de29a5
staging: fieldbus: simplify devm_anybuss_host_common_probe

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: Tian Tao <tiantao6@hisilicon.com>
Link: https://lore.kernel.org/r/1618275183-56792-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fieldbus/anybuss/host.c