Skip to content

Commit

Permalink
eeepc-laptop: add missing sparse_keymap_free
Browse files Browse the repository at this point in the history
Also remove legacy keymap which was not used since
we use sparse_keymap.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
  • Loading branch information
Corentin Chary authored and Matthew Garrett committed Apr 23, 2010
1 parent fb48aef commit c9db3ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/platform/x86/eeepc-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ struct eeepc_laptop {
struct backlight_device *backlight_device;

struct input_dev *inputdev;
struct key_entry *keymap;

struct rfkill *wlan_rfkill;
struct rfkill *bluetooth_rfkill;
Expand Down Expand Up @@ -1204,8 +1203,8 @@ static int eeepc_input_init(struct eeepc_laptop *eeepc)
static void eeepc_input_exit(struct eeepc_laptop *eeepc)
{
if (eeepc->inputdev) {
sparse_keymap_free(eeepc->inputdev);
input_unregister_device(eeepc->inputdev);
kfree(eeepc->keymap);
}
}

Expand Down

0 comments on commit c9db3ef

Please sign in to comment.