|
@@ -173,12 +173,11 @@ static int eeti_ts_probe(struct i2c_client *client,
|
|
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
|
|
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
|
|
if (!priv) {
|
|
if (!priv) {
|
|
dev_err(&client->dev, "failed to allocate driver data\n");
|
|
dev_err(&client->dev, "failed to allocate driver data\n");
|
|
- goto err0;
|
|
|
|
|
|
+ return -ENOMEM;
|
|
}
|
|
}
|
|
|
|
|
|
mutex_init(&priv->mutex);
|
|
mutex_init(&priv->mutex);
|
|
input = input_allocate_device();
|
|
input = input_allocate_device();
|
|
-
|
|
|
|
if (!input) {
|
|
if (!input) {
|
|
dev_err(&client->dev, "Failed to allocate input device.\n");
|
|
dev_err(&client->dev, "Failed to allocate input device.\n");
|
|
goto err1;
|
|
goto err1;
|
|
@@ -243,7 +242,6 @@ err2:
|
|
err1:
|
|
err1:
|
|
input_free_device(input);
|
|
input_free_device(input);
|
|
kfree(priv);
|
|
kfree(priv);
|
|
-err0:
|
|
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|
|
|
|
|