mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
[media] rc: gpio-ir-recv: 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
a0c6ae257e
commit
d78fe08778
1 changed files with 0 additions and 2 deletions
|
@ -178,7 +178,6 @@ static int gpio_ir_recv_probe(struct platform_device *pdev)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_request_irq:
|
err_request_irq:
|
||||||
platform_set_drvdata(pdev, NULL);
|
|
||||||
rc_unregister_device(rcdev);
|
rc_unregister_device(rcdev);
|
||||||
rcdev = NULL;
|
rcdev = NULL;
|
||||||
err_register_rc_device:
|
err_register_rc_device:
|
||||||
|
@ -196,7 +195,6 @@ static int gpio_ir_recv_remove(struct platform_device *pdev)
|
||||||
struct gpio_rc_dev *gpio_dev = platform_get_drvdata(pdev);
|
struct gpio_rc_dev *gpio_dev = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
free_irq(gpio_to_irq(gpio_dev->gpio_nr), gpio_dev);
|
free_irq(gpio_to_irq(gpio_dev->gpio_nr), gpio_dev);
|
||||||
platform_set_drvdata(pdev, NULL);
|
|
||||||
rc_unregister_device(gpio_dev->rcdev);
|
rc_unregister_device(gpio_dev->rcdev);
|
||||||
gpio_free(gpio_dev->gpio_nr);
|
gpio_free(gpio_dev->gpio_nr);
|
||||||
kfree(gpio_dev);
|
kfree(gpio_dev);
|
||||||
|
|
Loading…
Reference in a new issue