Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[deliverable/linux.git] / drivers / media / rc / nuvoton-cir.c
index 67db965ae8e5b0cdc5a1a08860963f8fe582af2e..00215f3438196b38dc0cc7b47363ab3814ee32ca 100644 (file)
@@ -393,6 +393,7 @@ static int nvt_hw_detect(struct nvt_dev *nvt)
        /* Check if we're wired for the alternate EFER setup */
        nvt->chip_major = nvt_cr_read(nvt, CR_CHIP_ID_HI);
        if (nvt->chip_major == 0xff) {
+               nvt_efm_disable(nvt);
                nvt->cr_efir = CR_EFIR2;
                nvt->cr_efdr = CR_EFDR2;
                nvt_efm_enable(nvt);
@@ -806,9 +807,6 @@ static void nvt_get_rx_ir_data(struct nvt_dev *nvt)
 
        /* Get count of how many bytes to read from RX FIFO */
        fifocount = nvt_cir_reg_read(nvt, CIR_RXFCONT);
-       /* if we get 0xff, probably means the logical dev is disabled */
-       if (fifocount == 0xff)
-               return;
 
        nvt_dbg("attempting to fetch %u bytes from hw rx fifo", fifocount);
 
This page took 0.030389 seconds and 5 git commands to generate.