summaryrefslogtreecommitdiff
path: root/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2017-03-20 14:40:20 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-21 08:04:32 +0100
commit08dcded491c90229295027771447bf0ff9882be6 (patch)
treeac3c0d965a47520b3c7047dd00198fe77cd3045f /drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c
parent9bc30b3a7951a2568817a8c8024e6bdc469e305e (diff)
atomisp: remove another pair of 2400/2401 differences
The first of these checks the PCI identifier in order to decide what to do so needs no ifdef. The other is simply a variation on what is dumped for debug - so favour dumping the most. Signed-off-by Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c')
-rw-r--r--drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c
index d97a8df7289a..08da8ea062ca 100644
--- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c
+++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c
@@ -263,12 +263,10 @@ int atomisp_freq_scaling(struct atomisp_device *isp,
return -EINVAL;
}
-#ifdef ISP2401
if ((isp->pdev->device & ATOMISP_PCI_DEVICE_SOC_MASK) ==
ATOMISP_PCI_DEVICE_SOC_CHT && ATOMISP_USE_YUVPP(asd))
isp->dfs = &dfs_config_cht_soc;
-#endif
if (isp->dfs->lowest_freq == 0 || isp->dfs->max_freq_at_vmin == 0 ||
isp->dfs->highest_freq == 0 || isp->dfs->dfs_table_size == 0 ||
!isp->dfs->dfs_table) {
@@ -654,13 +652,8 @@ irqreturn_t atomisp_isr(int irq, void *dev)
}
atomisp_eof_event(asd, eof_event.event.exp_id);
-#ifndef ISP2401
- dev_dbg(isp->dev, "%s EOF exp_id %d\n", __func__,
- eof_event.event.exp_id);
-#else
dev_dbg(isp->dev, "%s EOF exp_id %d, asd %d\n",
__func__, eof_event.event.exp_id, asd->index);
-#endif
}
irq_infos &= ~IA_CSS_IRQ_INFO_ISYS_EVENTS_READY;