Input: ims-pcu - fix error unwinding path in application mode
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 4 Jan 2014 04:54:37 +0000 (20:54 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 12 Feb 2014 23:09:40 +0000 (15:09 -0800)
commitad7647d92f61c6e78bf6dc3804da1e2acf0515b6
treed925b6b3719d97b012a2d51a11b6c7473cd1175e
parente3480a61fca72d40d6dc4baaf37e94fcbfa95e19
Input: ims-pcu - fix error unwinding path in application mode

We first create backlight and then input devices so we should destroy them
in opposite order when handling errors.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/ims-pcu.c