Преглед на файлове

Input: mpu3050 - correct call to input_free_device

input_free_device() should be used if input_register_device() was not called
yet or if it failed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Axel Lin преди 14 години
родител
ревизия
d9b830fa44
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      drivers/input/misc/mpu3050.c

+ 1 - 1
drivers/input/misc/mpu3050.c

@@ -282,7 +282,7 @@ static int __devinit mpu3050_probe(struct i2c_client *client,
 err_pm_set_suspended:
 	pm_runtime_set_suspended(&client->dev);
 err_free_mem:
-	input_unregister_device(idev);
+	input_free_device(idev);
 	kfree(sensor);
 	return error;
 }