From: Eunyoung Lee Date: Wed, 7 Mar 2018 04:43:23 +0000 (+0900) Subject: [9610] fimc-is2: BUG_ON to FIMC_BUG patch of ischain files X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e180f149e76e759e78a2cf45c2506586c0297eda;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [9610] fimc-is2: BUG_ON to FIMC_BUG patch of ischain files Change-Id: I9db13a3a88f169ae2dc4285a1fad1ac24465d8b5 Signed-off-by: Eunyoung Lee --- diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-chain.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-chain.c index b71e0db46f85..5cdb22dcb2ed 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-chain.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-chain.c @@ -133,7 +133,7 @@ int fimc_is_hw_group_cfg(void *group_data) struct fimc_is_device_sensor *sensor; struct fimc_is_device_ischain *device; - BUG_ON(!group_data); + FIMC_BUG(!group_data); group = (struct fimc_is_group *)group_data; @@ -248,7 +248,7 @@ int fimc_is_hw_group_open(void *group_data) struct fimc_is_group *group; struct fimc_is_device_ischain *device; - BUG_ON(!group_data); + FIMC_BUG(!group_data); group = group_data; leader = &group->leader; @@ -297,7 +297,7 @@ int fimc_is_hw_camif_cfg(void *sensor_data) u32 mux_set_val = MUX_SET_VAL_DEFAULT; u32 mux_clr_val = MUX_CLR_VAL_DEFAULT; - BUG_ON(!sensor_data); + FIMC_BUG(!sensor_data); sensor = sensor_data; csi = (struct fimc_is_device_csi *)v4l2_get_subdevdata(sensor->subdev_csi); @@ -365,7 +365,7 @@ int fimc_is_hw_camif_open(void *sensor_data) struct fimc_is_device_sensor *sensor; struct fimc_is_device_csi *csi; - BUG_ON(!sensor_data); + FIMC_BUG(!sensor_data); sensor = sensor_data; csi = (struct fimc_is_device_csi *)v4l2_get_subdevdata(sensor->subdev_csi); @@ -725,8 +725,8 @@ int fimc_is_hw_get_address(void *itfc_data, void *pdev_data, int hw_id) struct platform_device *pdev = NULL; struct fimc_is_interface_hwip *itf_hwip = NULL; - BUG_ON(!itfc_data); - BUG_ON(!pdev_data); + FIMC_BUG(!itfc_data); + FIMC_BUG(!pdev_data); itf_hwip = (struct fimc_is_interface_hwip *)itfc_data; pdev = (struct platform_device *)pdev_data; @@ -852,7 +852,7 @@ int fimc_is_hw_get_irq(void *itfc_data, void *pdev_data, int hw_id) struct platform_device *pdev = NULL; int ret = 0; - BUG_ON(!itfc_data); + FIMC_BUG(!itfc_data); itf_hwip = (struct fimc_is_interface_hwip *)itfc_data; pdev = (struct platform_device *)pdev_data; @@ -950,7 +950,7 @@ int fimc_is_hw_request_irq(void *itfc_data, int hw_id) struct fimc_is_interface_hwip *itf_hwip = NULL; int ret = 0; - BUG_ON(!itfc_data); + FIMC_BUG(!itfc_data); itf_hwip = (struct fimc_is_interface_hwip *)itfc_data; @@ -998,8 +998,8 @@ int fimc_is_hw_s_ctrl(void *itfc_data, int hw_id, enum hw_s_ctrl_id id, void *va struct fimc_is_device_ischain *device; unsigned long data = (unsigned long)val; - BUG_ON(!vctx); - BUG_ON(!GET_DEVICE(vctx)); + FIMC_BUG(!vctx); + FIMC_BUG(!GET_DEVICE(vctx)); device = GET_DEVICE(vctx); @@ -1038,7 +1038,7 @@ int fimc_is_hw_query_cap(void *cap_data, int hw_id) { int ret = 0; - BUG_ON(!cap_data); + FIMC_BUG(!cap_data); switch (hw_id) { case DEV_HW_MCSC0: diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-dvfs.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-dvfs.c index 2318c60a5c5e..b64b1914a325 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-dvfs.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-dvfs.c @@ -693,7 +693,7 @@ int fimc_is_hw_dvfs_init(void *dvfs_data) dvfs_ctrl = (struct fimc_is_dvfs_ctrl *)dvfs_data; - BUG_ON(!dvfs_ctrl); + FIMC_BUG(!dvfs_ctrl); /* set priority by order */ for (i = 0; i < ARRAY_SIZE(static_scenarios); i++) diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3aa.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3aa.c index 824729617855..668e02af9f5c 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3aa.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3aa.c @@ -41,13 +41,13 @@ static int fimc_is_ischain_3aa_cfg(struct fimc_is_subdev *leader, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!leader); - BUG_ON(!device); - BUG_ON(!device->sensor); - BUG_ON(!incrop); - BUG_ON(!lindex); - BUG_ON(!hindex); - BUG_ON(!indexes); + FIMC_BUG(!leader); + FIMC_BUG(!device); + FIMC_BUG(!device->sensor); + FIMC_BUG(!incrop); + FIMC_BUG(!lindex); + FIMC_BUG(!hindex); + FIMC_BUG(!indexes); group = &device->group_3aa; @@ -203,10 +203,10 @@ static int fimc_is_ischain_3aa_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!subdev); - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!frame); + FIMC_BUG(!subdev); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!frame); mdbgs_ischain(4, "3AA TAG\n", device); diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ac.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ac.c index 9e93e387f2f2..8d72da55e12a 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ac.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ac.c @@ -45,8 +45,8 @@ static int fimc_is_ischain_3ac_start(struct fimc_is_device_ischain *device, struct fimc_is_module_enum *module; u32 hw_format, hw_bitwidth, hw_order; - BUG_ON(!queue); - BUG_ON(!queue->framecfg.format); + FIMC_BUG(!queue); + FIMC_BUG(!queue->framecfg.format); hw_format = queue->framecfg.format->hw_format; hw_order = queue->framecfg.format->hw_order; @@ -136,12 +136,12 @@ static int fimc_is_ischain_3ac_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!subdev); - BUG_ON(!GET_SUBDEV_QUEUE(subdev)); - BUG_ON(!ldr_frame); - BUG_ON(!ldr_frame->shot); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!subdev); + FIMC_BUG(!GET_SUBDEV_QUEUE(subdev)); + FIMC_BUG(!ldr_frame); + FIMC_BUG(!ldr_frame->shot); mdbgs_ischain(4, "3AAC TAG(request %d)\n", device, node->request); diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ap.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ap.c index 569555688768..aecc339d8f97 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ap.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ap.c @@ -46,8 +46,8 @@ static int fimc_is_ischain_3ap_start(struct fimc_is_device_ischain *device, struct fimc_is_module_enum *module; u32 hw_format, hw_bitwidth; - BUG_ON(!queue); - BUG_ON(!queue->framecfg.format); + FIMC_BUG(!queue); + FIMC_BUG(!queue->framecfg.format); group = &device->group_3aa; @@ -202,13 +202,13 @@ static int fimc_is_ischain_3ap_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!subdev); - BUG_ON(!GET_SUBDEV_QUEUE(subdev)); - BUG_ON(!ldr_frame); - BUG_ON(!ldr_frame->shot); - BUG_ON(!node); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!subdev); + FIMC_BUG(!GET_SUBDEV_QUEUE(subdev)); + FIMC_BUG(!ldr_frame); + FIMC_BUG(!ldr_frame->shot); + FIMC_BUG(!node); mdbgs_ischain(4, "3AAP TAG(request %d)\n", device, node->request); diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-isp.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-isp.c index 5aa4cc92397d..99191ffc4e22 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-isp.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-isp.c @@ -44,12 +44,12 @@ static int fimc_is_ischain_isp_cfg(struct fimc_is_subdev *leader, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!leader); - BUG_ON(!device); - BUG_ON(!incrop); - BUG_ON(!lindex); - BUG_ON(!hindex); - BUG_ON(!indexes); + FIMC_BUG(!leader); + FIMC_BUG(!device); + FIMC_BUG(!incrop); + FIMC_BUG(!lindex); + FIMC_BUG(!hindex); + FIMC_BUG(!indexes); width = incrop->w; height = incrop->h; @@ -193,10 +193,10 @@ static int fimc_is_ischain_isp_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!subdev); - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!frame); + FIMC_BUG(!subdev); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!frame); mdbgs_ischain(4, "ISP TAG\n", device); diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixc.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixc.c index 8ca80db39c11..4325e9f6d69f 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixc.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixc.c @@ -46,8 +46,8 @@ static int fimc_is_ischain_ixc_start(struct fimc_is_device_ischain *device, u32 votf_dst_ip = 0; u32 votf_dst_axi_id_m = 0; - BUG_ON(!queue); - BUG_ON(!queue->framecfg.format); + FIMC_BUG(!queue); + FIMC_BUG(!queue->framecfg.format); group = &device->group_isp; if (group->vnext) { @@ -131,12 +131,12 @@ static int fimc_is_ischain_ixc_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!subdev); - BUG_ON(!GET_SUBDEV_QUEUE(subdev)); - BUG_ON(!ldr_frame); - BUG_ON(!ldr_frame->shot); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!subdev); + FIMC_BUG(!GET_SUBDEV_QUEUE(subdev)); + FIMC_BUG(!ldr_frame); + FIMC_BUG(!ldr_frame->shot); mdbgs_ischain(4, "ISPC TAG(request %d)\n", device, node->request); diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixp.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixp.c index 672477752fcc..135609214d05 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixp.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixp.c @@ -42,8 +42,8 @@ static int fimc_is_ischain_ixp_start(struct fimc_is_device_ischain *device, struct param_dma_output *dma_output; struct fimc_is_fmt *format; - BUG_ON(!queue); - BUG_ON(!queue->framecfg.format); + FIMC_BUG(!queue); + FIMC_BUG(!queue->framecfg.format); format = queue->framecfg.format; @@ -110,12 +110,12 @@ static int fimc_is_ischain_ixp_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!subdev); - BUG_ON(!GET_SUBDEV_QUEUE(subdev)); - BUG_ON(!ldr_frame); - BUG_ON(!ldr_frame->shot); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!subdev); + FIMC_BUG(!GET_SUBDEV_QUEUE(subdev)); + FIMC_BUG(!ldr_frame); + FIMC_BUG(!ldr_frame->shot); mdbgs_ischain(4, "ISPP TAG(request %d)\n", device, node->request); diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcs.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcs.c index 48e17641fdeb..51a74a1d5e26 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcs.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcs.c @@ -31,8 +31,8 @@ static int fimc_is_ischain_mcs_bypass(struct fimc_is_subdev *leader, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!leader); - BUG_ON(!device); + FIMC_BUG(!leader); + FIMC_BUG(!device); group = &device->group_mcs; @@ -95,13 +95,13 @@ static int fimc_is_ischain_mcs_cfg(struct fimc_is_subdev *leader, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!leader); - BUG_ON(!device); - BUG_ON(!device->sensor); - BUG_ON(!incrop); - BUG_ON(!lindex); - BUG_ON(!hindex); - BUG_ON(!indexes); + FIMC_BUG(!leader); + FIMC_BUG(!device); + FIMC_BUG(!device->sensor); + FIMC_BUG(!incrop); + FIMC_BUG(!lindex); + FIMC_BUG(!hindex); + FIMC_BUG(!indexes); group = &device->group_mcs; queue = GET_SUBDEV_QUEUE(leader); @@ -207,10 +207,10 @@ static int fimc_is_ischain_mcs_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!subdev); - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!frame); + FIMC_BUG(!subdev); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!frame); mdbgs_ischain(4, "MCSC TAG\n", device); diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c index efc91581e874..38763e27f6de 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c @@ -48,8 +48,8 @@ static int fimc_is_ischain_mxp_cfg(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!device); - BUG_ON(!incrop); + FIMC_BUG(!device); + FIMC_BUG(!incrop); queue = GET_SUBDEV_QUEUE(subdev); if (!queue) { @@ -235,8 +235,8 @@ static int fimc_is_ischain_mxp_start(struct fimc_is_device_ischain *device, struct param_otf_input *otf_input; u32 crange; - BUG_ON(!queue); - BUG_ON(!queue->framecfg.format); + FIMC_BUG(!queue); + FIMC_BUG(!queue->framecfg.format); format = queue->framecfg.format; @@ -400,13 +400,13 @@ static int fimc_is_ischain_mxp_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!subdev); - BUG_ON(!GET_SUBDEV_QUEUE(subdev)); - BUG_ON(!ldr_frame); - BUG_ON(!ldr_frame->shot); - BUG_ON(!node); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!subdev); + FIMC_BUG(!GET_SUBDEV_QUEUE(subdev)); + FIMC_BUG(!ldr_frame); + FIMC_BUG(!ldr_frame->shot); + FIMC_BUG(!node); mdbgs_ischain(4, "MXP TAG(request %d)\n", device, node->request); diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mexc.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mexc.c index 4aa7b1fd5b31..966aa871b52f 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mexc.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mexc.c @@ -43,12 +43,12 @@ static int fimc_is_ischain_mexc_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!subdev); - BUG_ON(!GET_SUBDEV_QUEUE(subdev)); - BUG_ON(!ldr_frame); - BUG_ON(!ldr_frame->shot); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!subdev); + FIMC_BUG(!GET_SUBDEV_QUEUE(subdev)); + FIMC_BUG(!ldr_frame); + FIMC_BUG(!ldr_frame->shot); mdbgs_ischain(4, "MEXC TAG(request %d)\n", device, node->request); diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc0.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc0.c index 9b9b6a7e77e2..97195c458733 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc0.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc0.c @@ -41,8 +41,8 @@ static int fimc_is_sensor_vc0_tag(struct fimc_is_subdev *subdev, struct v4l2_subdev *subdev_csi; struct fimc_is_device_sensor *device; - BUG_ON(!subdev); - BUG_ON(!ldr_frame); + FIMC_BUG(!subdev); + FIMC_BUG(!ldr_frame); device = (struct fimc_is_device_sensor *)device_data; subdev_csi = device->subdev_csi; diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc1.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc1.c index 0f1950e5ea58..75163d81d218 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc1.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc1.c @@ -41,8 +41,8 @@ static int fimc_is_sensor_vc1_tag(struct fimc_is_subdev *subdev, struct v4l2_subdev *subdev_csi; struct fimc_is_device_sensor *device; - BUG_ON(!subdev); - BUG_ON(!ldr_frame); + FIMC_BUG(!subdev); + FIMC_BUG(!ldr_frame); device = (struct fimc_is_device_sensor *)device_data; subdev_csi = device->subdev_csi; diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc2.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc2.c index 1c3e65055960..03d3940923cf 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc2.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc2.c @@ -41,8 +41,8 @@ static int fimc_is_sensor_vc2_tag(struct fimc_is_subdev *subdev, struct v4l2_subdev *subdev_csi; struct fimc_is_device_sensor *device; - BUG_ON(!subdev); - BUG_ON(!ldr_frame); + FIMC_BUG(!subdev); + FIMC_BUG(!ldr_frame); device = (struct fimc_is_device_sensor *)device_data; subdev_csi = device->subdev_csi; diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc3.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc3.c index c10d1cf24e81..685e674b3ce9 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc3.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc3.c @@ -41,8 +41,8 @@ static int fimc_is_sensor_vc3_tag(struct fimc_is_subdev *subdev, struct v4l2_subdev *subdev_csi; struct fimc_is_device_sensor *device; - BUG_ON(!subdev); - BUG_ON(!ldr_frame); + FIMC_BUG(!subdev); + FIMC_BUG(!ldr_frame); device = (struct fimc_is_device_sensor *)device_data; subdev_csi = device->subdev_csi; diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-vra.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-vra.c index 93602dee2d4a..29a580723f11 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-vra.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-vra.c @@ -38,12 +38,12 @@ static int fimc_is_ischain_vra_cfg(struct fimc_is_subdev *leader, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!leader); - BUG_ON(!device); - BUG_ON(!incrop); - BUG_ON(!lindex); - BUG_ON(!hindex); - BUG_ON(!indexes); + FIMC_BUG(!leader); + FIMC_BUG(!device); + FIMC_BUG(!incrop); + FIMC_BUG(!lindex); + FIMC_BUG(!hindex); + FIMC_BUG(!indexes); width = incrop->w; height = incrop->h; @@ -120,11 +120,11 @@ static int fimc_is_ischain_vra_tag(struct fimc_is_subdev *subdev, device = (struct fimc_is_device_ischain *)device_data; - BUG_ON(!subdev); - BUG_ON(!device); - BUG_ON(!device->is_region); - BUG_ON(!frame); - BUG_ON(!frame->shot); + FIMC_BUG(!subdev); + FIMC_BUG(!device); + FIMC_BUG(!device->is_region); + FIMC_BUG(!frame); + FIMC_BUG(!frame->shot); incrop = (struct fimc_is_crop *)node->input.cropRegion; otcrop = (struct fimc_is_crop *)node->output.cropRegion;