Skip to content

Commit

Permalink
Input: xilinx_ps2 - remove redundant platform_set_drvdata()
Browse files Browse the repository at this point in the history
Commit 0998d06 (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>
  • Loading branch information
Sachin Kamat authored and Dmitry Torokhov committed May 28, 2013
1 parent 16e263a commit f6e63f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/input/serio/xilinx_ps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,6 @@ static int xps2_of_remove(struct platform_device *of_dev)

kfree(drvdata);

platform_set_drvdata(of_dev, NULL);

return 0;
}

Expand Down

0 comments on commit f6e63f8

Please sign in to comment.