projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
112902f
)
media: ite-cir: set parent device
author
Sean Young
<sean@mess.org>
Sat, 20 Feb 2021 10:04:41 +0000
(11:04 +0100)
committer
Mauro 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
patch
|
blob
|
history
diff --git
a/drivers/media/rc/ite-cir.c
b/drivers/media/rc/ite-cir.c
index 4a51ca801902fc590a5b2f450d5a1ce18870a4e5..ffd531402eb8a248352e2dceeada386edf0a8ac6 100644
(file)
--- 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;