aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/i2c-hid
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/i2c-hid')
-rw-r--r--drivers/hid/i2c-hid/i2c-hid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index 5f7e55f4b7f0..e914f2755491 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -1061,6 +1061,7 @@ static int i2c_hid_suspend(struct device *dev)
1061{ 1061{
1062 struct i2c_client *client = to_i2c_client(dev); 1062 struct i2c_client *client = to_i2c_client(dev);
1063 1063
1064 disable_irq(client->irq);
1064 if (device_may_wakeup(&client->dev)) 1065 if (device_may_wakeup(&client->dev))
1065 enable_irq_wake(client->irq); 1066 enable_irq_wake(client->irq);
1066 1067
@@ -1075,6 +1076,7 @@ static int i2c_hid_resume(struct device *dev)
1075 int ret; 1076 int ret;
1076 struct i2c_client *client = to_i2c_client(dev); 1077 struct i2c_client *client = to_i2c_client(dev);
1077 1078
1079 enable_irq(client->irq);
1078 ret = i2c_hid_hwreset(client); 1080 ret = i2c_hid_hwreset(client);
1079 if (ret) 1081 if (ret)
1080 return ret; 1082 return ret;