]> Git Repo - linux.git/commitdiff
Input: rb532_button - remove redundant dev_set_drvdata
authorSachin Kamat <[email protected]>
Wed, 18 Sep 2013 14:48:18 +0000 (07:48 -0700)
committerDmitry Torokhov <[email protected]>
Wed, 18 Sep 2013 14:53:41 +0000 (07:53 -0700)
Driver core sets the data to NULL upon release or probe
failure. Hence explicit setting is not necessary.

Signed-off-by: Sachin Kamat <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/misc/rb532_button.c

index fb4f8ac3343bd5c47c987e4ffb11c2540cf60267..83fff38b86b367ccdd2728095cafc769b6d00531 100644 (file)
@@ -87,7 +87,6 @@ static int rb532_button_remove(struct platform_device *pdev)
 
        input_unregister_polled_device(poll_dev);
        input_free_polled_device(poll_dev);
-       dev_set_drvdata(&pdev->dev, NULL);
 
        return 0;
 }
This page took 0.058145 seconds and 4 git commands to generate.