Commit b6a08a4ad8d44be925c5a183130aec348aa1a8b6
Committed by
Dmitry Torokhov
1 parent
8b07dd0f8f
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
Input: pmic8xxx-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> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
drivers/input/keyboard/pmic8xxx-keypad.c
... | ... | @@ -707,7 +707,6 @@ |
707 | 707 | err_get_irq: |
708 | 708 | input_free_device(kp->input); |
709 | 709 | err_alloc_device: |
710 | - platform_set_drvdata(pdev, NULL); | |
711 | 710 | kfree(kp); |
712 | 711 | return rc; |
713 | 712 | } |
... | ... | @@ -722,7 +721,6 @@ |
722 | 721 | input_unregister_device(kp->input); |
723 | 722 | kfree(kp); |
724 | 723 | |
725 | - platform_set_drvdata(pdev, NULL); | |
726 | 724 | return 0; |
727 | 725 | } |
728 | 726 |