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

Input: w90p910_keypad - 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>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Sachin Kamat and committed by
Dmitry Torokhov
d5201455 62205e08

-1
-1
drivers/input/keyboard/w90p910_keypad.c
··· 249 249 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 250 250 release_mem_region(res->start, resource_size(res)); 251 251 252 - platform_set_drvdata(pdev, NULL); 253 252 kfree(keypad); 254 253 255 254 return 0;