bus: vexpress-config: fix device reference leak
authorJohan Hovold <johan@kernel.org>
Wed, 16 Nov 2016 17:31:30 +0000 (17:31 +0000)
committerArnd Bergmann <arnd@arndb.de>
Wed, 30 Nov 2016 22:29:37 +0000 (23:29 +0100)
commitc090959b9dd8c87703e275079aa4b4a824ba3f8e
tree59c5c602924936f45eaf180ccf82750afc7e1451
parent920f8bf7f366ed20935669f782ffcb5a36d5df8f
bus: vexpress-config: fix device reference leak

Make sure to drop the reference to the parent device taken by
class_find_device() after populating the bus.

Fixes: 3b9334ac835b ("mfd: vexpress: Convert custom func API to regmap")
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/vexpress-config.c