From 0b2c7dcff345c32795164fc596d22542718c1600 Mon Sep 17 00:00:00 2001 From: Sean Young Date: Sat, 20 Feb 2021 11:04:41 +0100 Subject: [PATCH] media: ite-cir: set parent device This ensure that the rc device shows up correctly in sysfs. Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- drivers/media/rc/ite-cir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c index 4a51ca80..ffd5314 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; -- 2.7.4