aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/i2c-hid/i2c-hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index a3f6daf0886b..a83814949467 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -1064,7 +1064,7 @@ static int i2c_hid_probe(struct i2c_client *client,
1064 if (ret != -EPROBE_DEFER) 1064 if (ret != -EPROBE_DEFER)
1065 dev_err(&client->dev, "Failed to get regulator: %d\n", 1065 dev_err(&client->dev, "Failed to get regulator: %d\n",
1066 ret); 1066 ret);
1067 return ret; 1067 goto err;
1068 } 1068 }
1069 1069
1070 ret = regulator_enable(ihid->pdata.supply); 1070 ret = regulator_enable(ihid->pdata.supply);