]> git.baikalelectronics.ru Git - kernel.git/commit
platform-drivers-x86: ideapad-laptop: add missing ideapad_input_exit in ideapad_acpi_...
authorAxel Lin <axel.lin@gmail.com>
Wed, 27 Jul 2011 07:27:34 +0000 (15:27 +0800)
committerMatthew Garrett <mjg@redhat.com>
Fri, 5 Aug 2011 19:21:50 +0000 (15:21 -0400)
commit4f34a521e87723d628c68ddadc53f56f64a347e4
tree651ab1840943cc5974e577806b3ddbe60f52470b
parenta63749d139923ed24ac80f2a7d3155a50bb43635
platform-drivers-x86: ideapad-laptop: add missing ideapad_input_exit in ideapad_acpi_add error path

In the case of ideapad_backlight_init() failure,
we need to free the resources allocated by ideapad_input_init().

Aslo drop __devexit annotation for ideapad_input_exit() because
we also call it in ideapad_acpi_add() error path.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/ideapad-laptop.c