mfd: vexpress-sysreg: Use devres API variants
authorRob Herring <robh@kernel.org>
Wed, 29 Apr 2020 20:58:19 +0000 (15:58 -0500)
committerRob Herring <robh@kernel.org>
Wed, 13 May 2020 17:42:45 +0000 (12:42 -0500)
commit0ea355ef78434ae3e8faffe605c98b62e07d1273
tree61fec1332ab7b68801cffc46e66efff8ae9d6da6
parent13fc767335caf08eed4de5a07e509cfddf6d2cbd
mfd: vexpress-sysreg: Use devres API variants

Use the managed devm_gpiochip_add_data() and devm_mfd_add_devices()
instead of their unmanaged counterparts. With this, no .remove() hook is
needed for driver unbind.

Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/mfd/vexpress-sysreg.c