aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/rc/fintek-cir.c4
-rw-r--r--drivers/media/rc/nuvoton-cir.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/rc/fintek-cir.c b/drivers/media/rc/fintek-cir.c
index 3d5e57cacf31..5eefe65760a4 100644
--- a/drivers/media/rc/fintek-cir.c
+++ b/drivers/media/rc/fintek-cir.c
@@ -557,6 +557,8 @@ static int fintek_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id
557 /* rx resolution is hardwired to 50us atm, 1, 25, 100 also possible */ 557 /* rx resolution is hardwired to 50us atm, 1, 25, 100 also possible */
558 rdev->rx_resolution = US_TO_NS(CIR_SAMPLE_PERIOD); 558 rdev->rx_resolution = US_TO_NS(CIR_SAMPLE_PERIOD);
559 559
560 fintek->rdev = rdev;
561
560 ret = -EBUSY; 562 ret = -EBUSY;
561 /* now claim resources */ 563 /* now claim resources */
562 if (!request_region(fintek->cir_addr, 564 if (!request_region(fintek->cir_addr,
@@ -572,7 +574,7 @@ static int fintek_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id
572 goto exit_free_irq; 574 goto exit_free_irq;
573 575
574 device_init_wakeup(&pdev->dev, true); 576 device_init_wakeup(&pdev->dev, true);
575 fintek->rdev = rdev; 577
576 fit_pr(KERN_NOTICE, "driver has been successfully loaded\n"); 578 fit_pr(KERN_NOTICE, "driver has been successfully loaded\n");
577 if (debug) 579 if (debug)
578 cir_dump_regs(fintek); 580 cir_dump_regs(fintek);
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c
index 3477e231c182..c6441e690dd4 100644
--- a/drivers/media/rc/nuvoton-cir.c
+++ b/drivers/media/rc/nuvoton-cir.c
@@ -1065,6 +1065,7 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)
1065 /* tx bits */ 1065 /* tx bits */
1066 rdev->tx_resolution = XYZ; 1066 rdev->tx_resolution = XYZ;
1067#endif 1067#endif
1068 nvt->rdev = rdev;
1068 1069
1069 ret = -EBUSY; 1070 ret = -EBUSY;
1070 /* now claim resources */ 1071 /* now claim resources */
@@ -1089,7 +1090,7 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)
1089 goto exit_free_wake_irq; 1090 goto exit_free_wake_irq;
1090 1091
1091 device_init_wakeup(&pdev->dev, true); 1092 device_init_wakeup(&pdev->dev, true);
1092 nvt->rdev = rdev; 1093
1093 nvt_pr(KERN_NOTICE, "driver has been successfully loaded\n"); 1094 nvt_pr(KERN_NOTICE, "driver has been successfully loaded\n");
1094 if (debug) { 1095 if (debug) {
1095 cir_dump_regs(nvt); 1096 cir_dump_regs(nvt);