media: ite-cir: set parent device
authorSean Young <sean@mess.org>
Sat, 20 Feb 2021 10:04:41 +0000 (11:04 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Mar 2021 10:59:40 +0000 (11:59 +0100)
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>
drivers/media/rc/ite-cir.c

index 4a51ca8..ffd5314 100644 (file)
@@ -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;