[9610] fimc-is2: BUG_ON to FIMC_BUG patch of ischain files
authorEunyoung Lee <ey470.lee@samsung.com>
Wed, 7 Mar 2018 04:43:23 +0000 (13:43 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:43:29 +0000 (17:43 +0900)
Change-Id: I9db13a3a88f169ae2dc4285a1fad1ac24465d8b5
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
16 files changed:
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-chain.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-dvfs.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3aa.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ac.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-3ap.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-isp.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixc.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-ixp.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcs.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mexc.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc0.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc1.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc2.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-sensor_vc3.c
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-vra.c

index b71e0db46f85e39ef3eb1600fe30f48bd29a3bac..5cdb22dcb2ed53a95ecb7afdfca4ef8a2ef4d60b 100644 (file)
@@ -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:
index 2318c60a5c5e52f694bb4882285ef185e6413a3e..b64b1914a325a60a56fb3f858a7136a39a0d3d48 100644 (file)
@@ -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++)
index 8247296178559e45079e8465c0fcc7a9785204e9..668e02af9f5cacb06ec8906a8988e646d9665bb1 100644 (file)
@@ -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);
 
index 9e93e387f2f2c51165c670b4ab44ad842f0c1d45..8d72da55e12afc32a689a1a56b843f1a9dd51a9c 100644 (file)
@@ -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);
 
index 56955568876891741f8758ccc9613893b23556c2..aecc339d8f9718a24cec4951b909b181d00ad1b3 100644 (file)
@@ -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);
 
index 5aa4cc92397d7a4b2c9b59613ed69eef75182d7c..99191ffc4e220e410b9cca00fef0ffde10bd829e 100644 (file)
@@ -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);
 
index 8ca80db39c1178cee59468d5a14e0c97177faab0..4325e9f6d69f0ac5fc23b52bd67db4b0a8dafb84 100644 (file)
@@ -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);
 
index 672477752fcc8062e9be10cffc261d3ab9fd8ebb..135609214d0559d4514741a71751ea575cbc0bd7 100644 (file)
@@ -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);
 
index 48e17641fdeb5395c8c6b959d3eff8b909101281..51a74a1d5e268d1cd8b8793fe9240ff065739751 100644 (file)
@@ -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);
 
index efc91581e87444382bb7e5bc77d33dc5e28126f7..38763e27f6de06a656e5b9de638f899d667288ba 100644 (file)
@@ -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);
 
index 4aa7b1fd5b317399ec1a7357fe7faf9d75239feb..966aa871b52fe88368ad69f3a1bd0d84a479c865 100644 (file)
@@ -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);
 
index 9b9b6a7e77e2d92ce6fa84daaea5775731ff2874..97195c458733347918fdb40eb8b649758f562cd0 100644 (file)
@@ -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;
index 0f1950e5ea5838680f652b72f3306ca952f843f9..75163d81d21804f4f1ae26348c50b81fd3163fdb 100644 (file)
@@ -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;
index 1c3e65055960fe5c645555091ded71b87bfae5b1..03d3940923cfa66d3ecae3c98f2ec2658cae2483 100644 (file)
@@ -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;
index c10d1cf24e81a19f7633149a96701c359c10ce6a..685e674b3ce9e67b36bf56e070d93a46dc3669aa 100644 (file)
@@ -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;
index 93602dee2d4a9a5fa8f8f7cfcf9a974aabd1cbce..29a580723f113c4a7496d53a5dac04b9a0e0f3b3 100644 (file)
@@ -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;