HSI: hsi: Fix error path cleanup on client registration
authorCarlos Chinea <carlos.chinea@nokia.com>
Wed, 11 Apr 2012 08:01:11 +0000 (11:01 +0300)
committerCarlos Chinea <carlos.chinea@nokia.com>
Mon, 23 Apr 2012 11:23:31 +0000 (14:23 +0300)
commit90e41f9dc75b47ab94e2191e4c86aa8259699a33
treefa163ec22d60c9c8f270fca4f31c2bf39aae4acd
parent5a218ceba7b64f506bf4f004b04bb457c1805a62
HSI: hsi: Fix error path cleanup on client registration

HSI client structure should be freed on error path after
calling device_registration by dropping a reference to it.

Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/hsi/hsi.c