Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: wm831x-ts - convert to devm_input_allocate_device()

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Mark Brown and committed by
Dmitry Torokhov
e7cd0aeb 7488b1b9

+1 -3
+1 -3
drivers/input/touchscreen/wm831x-ts.c
··· 247 247 248 248 wm831x_ts = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ts), 249 249 GFP_KERNEL); 250 - input_dev = input_allocate_device(); 250 + input_dev = devm_input_allocate_device(&pdev->dev); 251 251 if (!wm831x_ts || !input_dev) { 252 252 error = -ENOMEM; 253 253 goto err_alloc; ··· 376 376 err_data_irq: 377 377 free_irq(wm831x_ts->data_irq, wm831x_ts); 378 378 err_alloc: 379 - input_free_device(input_dev); 380 379 381 380 return error; 382 381 } ··· 386 387 387 388 free_irq(wm831x_ts->pd_irq, wm831x_ts); 388 389 free_irq(wm831x_ts->data_irq, wm831x_ts); 389 - input_unregister_device(wm831x_ts->input_dev); 390 390 391 391 return 0; 392 392 }