aboutsummaryrefslogtreecommitdiff
path: root/hid-tmff2.c
diff options
context:
space:
mode:
Diffstat (limited to 'hid-tmff2.c')
-rw-r--r--hid-tmff2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hid-tmff2.c b/hid-tmff2.c
index 4aa6141..3cfd1ad 100644
--- a/hid-tmff2.c
+++ b/hid-tmff2.c
@@ -627,8 +627,8 @@ static void tmff2_remove(struct hid_device *hdev)
if (tmff2->params & PARAM_ALT_MODE)
device_remove_file(dev, &dev_attr_alt_mode);
- tmff2->wheel_destroy(tmff2->data);
hid_hw_stop(hdev);
+ tmff2->wheel_destroy(tmff2->data);
kfree(tmff2->states);
kfree(tmff2);