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>
This commit is contained in:
parent
112902fc14
commit
0b2c7dcff3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue