]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit87e4916c27cd03cb33b95ec047444b250df539b4
tree321f8e8818c3974e18e673a3635b2c155f0201aa
parent6fcece4f5699eca61109e9c54f96fd512117d7ee
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