Commit c9db3efe authored by Corentin Chary's avatar Corentin Chary Committed by Matthew Garrett

eeepc-laptop: add missing sparse_keymap_free

Also remove legacy keymap which was not used since
we use sparse_keymap.
Signed-off-by: default avatarCorentin Chary <corentincj@iksaif.net>
parent fb48aef7
...@@ -169,7 +169,6 @@ struct eeepc_laptop { ...@@ -169,7 +169,6 @@ struct eeepc_laptop {
struct backlight_device *backlight_device; struct backlight_device *backlight_device;
struct input_dev *inputdev; struct input_dev *inputdev;
struct key_entry *keymap;
struct rfkill *wlan_rfkill; struct rfkill *wlan_rfkill;
struct rfkill *bluetooth_rfkill; struct rfkill *bluetooth_rfkill;
...@@ -1204,8 +1203,8 @@ static int eeepc_input_init(struct eeepc_laptop *eeepc) ...@@ -1204,8 +1203,8 @@ static int eeepc_input_init(struct eeepc_laptop *eeepc)
static void eeepc_input_exit(struct eeepc_laptop *eeepc) static void eeepc_input_exit(struct eeepc_laptop *eeepc)
{ {
if (eeepc->inputdev) { if (eeepc->inputdev) {
sparse_keymap_free(eeepc->inputdev);
input_unregister_device(eeepc->inputdev); input_unregister_device(eeepc->inputdev);
kfree(eeepc->keymap);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment