diff options
author | Alan Cox <alan@linux.intel.com> | 2017-03-08 11:39:48 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-08 13:39:09 +0100 |
commit | f6a681e0164725a5699bd403cb0f0d3497a86a48 (patch) | |
tree | 322deac3f1f72eea9884f20db71e927ee0661595 /drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c | |
parent | e35d4427b44217f8a1188e6301ea61bfafb37b4e (diff) | |
download | op-kernel-dev-f6a681e0164725a5699bd403cb0f0d3497a86a48.zip op-kernel-dev-f6a681e0164725a5699bd403cb0f0d3497a86a48.tar.gz |
atomisp: HRT_CSIM is never defined
Remove the content that is guarded by this define
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/css2400/sh_css_params.c')
-rw-r--r-- | drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c index 37a2690..9d51f1c 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c @@ -3705,23 +3705,6 @@ static void sh_css_update_isp_params_to_ddr( assert(params != NULL); -#ifdef HRT_CSIM - { - /* ispparm struct is read with DMA which reads - * multiples of the DDR word with (32 bytes): - * So we pad with zeroes to prevent warnings in csim. - */ - unsigned int aligned_width, padding_bytes; - hrt_vaddress pad_ptr; - - aligned_width = CEIL_MUL( - size, - HIVE_ISP_DDR_WORD_BYTES); - padding_bytes = aligned_width - size; - pad_ptr = ddr_ptr + size; - mmgr_clear(pad_ptr, padding_bytes); - } -#endif mmgr_store(ddr_ptr, &(params->uds), size); IA_CSS_LEAVE_PRIVATE("void"); } @@ -4073,18 +4056,6 @@ sh_css_params_write_to_ddr_internal( return err; } } -#ifdef HRT_CSIM - else { - hrt_vaddress ptr = - (hrt_vaddress)ddr_map->fpn_tbl; - /* prevent warnings when reading fpn table - * in csim.*/ - /* Actual values are not used when fpn is - * disabled. */ - /* MW: fpn_tbl_size*sizeof(whatever)? */ - mmgr_clear(ptr, ddr_map_size->fpn_tbl); - } -#endif } } |