OSDN Git Service

MIPS: TXx9: Add missing put_device call
authorLevente Kurusa <levex@linux.com>
Thu, 19 Dec 2013 15:03:25 +0000 (16:03 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Jul 2014 11:27:50 +0000 (13:27 +0200)
commit1610c8a8f2d3eb5dac5a418356c179d28da4e74e
treeea7a4c2baf59af3684e384992d86f928dcd07c14
parent1795cd9b3a91d4b5473c97f491d63892442212ab
MIPS: TXx9: Add missing put_device call

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

Also, rework error path so that it is easier to read.

[ralf@linux-mips.org: Reformat to Linux coding style and make
txx9_device_release static; folded in build fix by Levente for the
original patch.]

Signed-off-by: Levente Kurusa <levex@linux.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6259/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/txx9/generic/setup.c