diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2016-10-25 21:23:37 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-18 20:03:32 +0100 |
commit | b24ccccaee5e6a73f461b1ca7bbb55d3dfc24a2d (patch) | |
tree | 7a5024af86170551dbf79c9c58366e2c85cc9a43 /drivers/media/rc/nuvoton-cir.h | |
parent | [media] drivers/media/media-device: fix double free bug in _unregister() (diff) | |
download | linux-b24ccccaee5e6a73f461b1ca7bbb55d3dfc24a2d.tar.xz linux-b24ccccaee5e6a73f461b1ca7bbb55d3dfc24a2d.zip |
[media] media: rc: nuvoton: eliminate member pdev from struct nvt_dev
Member pdev of struct nvt_dev is needed only to access &pdev->dev.
We can get rid of this it by using rdev->dev.parent instead
(both point to the same struct device).
Setting rdev->dev.parent can be removed from the probe function
as this is done by devm_rc_allocate_device now.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/media/rc/nuvoton-cir.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/rc/nuvoton-cir.h b/drivers/media/rc/nuvoton-cir.h index acf735fc7170..77102a9b7d7b 100644 --- a/drivers/media/rc/nuvoton-cir.h +++ b/drivers/media/rc/nuvoton-cir.h @@ -78,7 +78,6 @@ struct nvt_chip { }; struct nvt_dev { - struct pnp_dev *pdev; struct rc_dev *rdev; spinlock_t nvt_lock; |