diff options
| -rw-r--r-- | hid-tmff2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hid-tmff2.c b/hid-tmff2.c index f53a34a..1d00303 100644 --- a/hid-tmff2.c +++ b/hid-tmff2.c @@ -693,6 +693,9 @@ static void tmff2_remove(struct hid_device *hdev) cancel_delayed_work_sync(&tmff2->work); dev = &tmff2->hdev->dev; + if (tmff2->params & PARAM_FRICTION_LEVEL) + device_remove_file(dev, &dev_attr_friction_level); + if (tmff2->params & PARAM_DAMPER_LEVEL) device_remove_file(dev, &dev_attr_damper_level); |
