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

Input: tnetv107x-ts - remove redundant platform_set_drvdata()

Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Sachin Kamat and committed by
Dmitry Torokhov
e8ecfd62 12aa9357

-2
-2
drivers/input/touchscreen/tnetv107x-ts.c
··· 351 351 error_map: 352 352 release_mem_region(ts->res->start, resource_size(ts->res)); 353 353 error_res: 354 - platform_set_drvdata(pdev, NULL); 355 354 kfree(ts); 356 355 357 356 return error; ··· 365 366 clk_put(ts->clk); 366 367 iounmap(ts->regs); 367 368 release_mem_region(ts->res->start, resource_size(ts->res)); 368 - platform_set_drvdata(pdev, NULL); 369 369 kfree(ts); 370 370 371 371 return 0;