diff options
-rw-r--r-- | drivers/media/rc/nuvoton-cir.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index b41e52e3471a..b81325d7948f 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) | |||
985 | goto exit_free_dev_rdev; | 985 | goto exit_free_dev_rdev; |
986 | 986 | ||
987 | ret = -ENODEV; | 987 | ret = -ENODEV; |
988 | /* activate pnp device */ | ||
989 | if (pnp_activate_dev(pdev) < 0) { | ||
990 | dev_err(&pdev->dev, "Could not activate PNP device!\n"); | ||
991 | goto exit_free_dev_rdev; | ||
992 | } | ||
993 | |||
988 | /* validate pnp resources */ | 994 | /* validate pnp resources */ |
989 | if (!pnp_port_valid(pdev, 0) || | 995 | if (!pnp_port_valid(pdev, 0) || |
990 | pnp_port_len(pdev, 0) < CIR_IOREG_LENGTH) { | 996 | pnp_port_len(pdev, 0) < CIR_IOREG_LENGTH) { |