MIPS: IP22: Add missing put_device call
authorLevente Kurusa <levex@linux.com>
Thu, 19 Dec 2013 15:03:27 +0000 (16:03 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Jul 2014 11:27:51 +0000 (13:27 +0200)
commit82242d28ff8bd2b3e0230190529c1ff333c766e1
tree332b799835dcdd66aff9c6b5010fa3c842f09981
parentf0a7a2d042807d08e5bcfd3194e74b16810c4def
MIPS: IP22: Add missing put_device call

This is required so that we give up the last reference to the device.

Also, create a gio_bus_release() that calls kfree on the device argument to
properly kfree() the memory allocated for the device.

[ralf@linux-mips.org: Reformat to Linux coding style and make
gio_bus_release static.]

Signed-off-by: Levente Kurusa <levex@linux.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6261/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sgi-ip22/ip22-gio.c