diff options
author | Sean Young <sean@mess.org> | 2021-02-20 13:04:41 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-11 13:59:40 +0300 |
commit | 0b2c7dcff345c32795164fc596d22542718c1600 (patch) | |
tree | 6721783c954f2dc0971935a4f7426114f1a36c6a /drivers/media/rc | |
parent | 112902fc14518732d9c41be2e7e971aabcd31a2d (diff) | |
download | linux-0b2c7dcff345c32795164fc596d22542718c1600.tar.xz |
media: ite-cir: set parent device
This ensure that the rc device shows up correctly in sysfs.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/ite-cir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c index 4a51ca801902..ffd531402eb8 100644 --- a/drivers/media/rc/ite-cir.c +++ b/drivers/media/rc/ite-cir.c @@ -1540,6 +1540,7 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_id /* set up ir-core props */ rdev->priv = itdev; + rdev->dev.parent = &pdev->dev; rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; rdev->open = ite_open; rdev->close = ite_close; |