aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/i2c-hid/i2c-hid.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/i2c-hid/i2c-hid.c')
-rw-r--r--drivers/hid/i2c-hid/i2c-hid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index 035a0cdd129e..aab3357626c7 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -908,6 +908,9 @@ static int __devexit i2c_hid_remove(struct i2c_client *client)
908 908
909 free_irq(client->irq, ihid); 909 free_irq(client->irq, ihid);
910 910
911 if (ihid->bufsize)
912 i2c_hid_free_buffers(ihid);
913
911 kfree(ihid); 914 kfree(ihid);
912 915
913 return 0; 916 return 0;