mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
linux: add patch to enable Nuvoton CIR driver on probing, see https://patchwork.linuxtv.org/patch/22339/
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
a5cc3b6f5f
commit
e2d50d09fa
17
packages/linux/patches/3.14.1/linux-061-nuvoton-cir-Activate-PNP-device-when-probing.patch
vendored
Normal file
17
packages/linux/patches/3.14.1/linux-061-nuvoton-cir-Activate-PNP-device-when-probing.patch
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c
|
||||
index b41e52e..b81325d 100644
|
||||
--- a/drivers/media/rc/nuvoton-cir.c
|
||||
+++ b/drivers/media/rc/nuvoton-cir.c
|
||||
@@ -985,6 +985,12 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)
|
||||
goto exit_free_dev_rdev;
|
||||
|
||||
ret = -ENODEV;
|
||||
+ /* activate pnp device */
|
||||
+ if (pnp_activate_dev(pdev) < 0) {
|
||||
+ dev_err(&pdev->dev, "Could not activate PNP device!\n");
|
||||
+ goto exit_free_dev_rdev;
|
||||
+ }
|
||||
+
|
||||
/* validate pnp resources */
|
||||
if (!pnp_port_valid(pdev, 0) ||
|
||||
pnp_port_len(pdev, 0) < CIR_IOREG_LENGTH) {
|
Loading…
x
Reference in New Issue
Block a user