]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: panasonic-laptop: remove sparse_keymap_free() calls
authorMichał Kępień <kernel@kempniu.pl>
Thu, 9 Mar 2017 12:11:47 +0000 (13:11 +0100)
committerDarren Hart <dvhart@infradead.org>
Wed, 15 Mar 2017 05:58:09 +0000 (22:58 -0700)
commitf7b3f1e86a14c55d90400022a081f60e78ebe701
tree6284c156232181362e251cfb268d47796a4aabe6
parent2b5ae14534bcc249970444294a0d21b05bcb9250
platform/x86: panasonic-laptop: remove sparse_keymap_free() calls

As sparse_keymap_setup() now uses a managed memory allocation for the
keymap copy it creates, the latter is freed automatically.  Remove all
calls to sparse_keymap_free().

As this reduces acpi_pcc_destroy_input() to one line, replace all calls
to that function with direct calls to input_unregister_device().

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/panasonic-laptop.c