Input: mpu3050 - correct call to input_free_device
authorAxel Lin <axel.lin@gmail.com>
Thu, 11 Aug 2011 16:19:29 +0000 (09:19 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Aug 2011 16:22:40 +0000 (09:22 -0700)
commitd9b830fa444c1f4955d0ee88f5af2aa24d2c7837
tree975cf957f1be913ef9ed673cf362ea800fbf2a14
parentdb0b34b07438d92c4c190998c42a502fbf90064e
Input: mpu3050 - correct call to input_free_device

input_free_device() should be used if input_register_device() was not called
yet or if it failed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/mpu3050.c