Input: rb532_button - remove redundant dev_set_drvdata
Driver core sets the data to NULL upon release or probe failure. Hence explicit setting is not necessary. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Родитель
4906a31b4c
Коммит
390de835b6
|
@ -87,7 +87,6 @@ static int rb532_button_remove(struct platform_device *pdev)
|
||||||
|
|
||||||
input_unregister_polled_device(poll_dev);
|
input_unregister_polled_device(poll_dev);
|
||||||
input_free_polled_device(poll_dev);
|
input_free_polled_device(poll_dev);
|
||||||
dev_set_drvdata(&pdev->dev, NULL);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче