staging: media: davinci_vpfe: Replace function vpfe_isif_cleanup()
Subsystems (2)
PATCH 1/1 staging: media: davinci_vpfe: Replace function vpfe_isif_cleanup()
Rename function isif_remove to vpfe_isif_cleanup, as vpfe_isif_cleanup does nothing but call isif_remove.
Change type of new vpfe_isif_cleanup from static to non-static to match the old function definition.
Remove the original vpfe_isif_cleanup.
Modify calls to isif_remove to vpfe_isif_cleanup.
Issue found with Coccinelle.
Signed-off-by Nishka Dasgupta <[email protected]>
--- .../staging/media/davinci_vpfe/dm365_isif.c | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-)
drivers/staging/media/davinci_vpfe/dm365_isif.c +8 -13
@@ -1932,8 +1932,13 @@ static const struct v4l2_ctrl_config vpfe_isif_gain_offset = { .def = 0, }; -static void isif_remove (struct vpfe_isif_device *isif, -struct platform_device *pdev) +/* +* vpfe_isif_cleanup - isif module cleanup +* @isif: pointer to isif subdevice +* @dev: pointer to platform device structure +*/ +void vpfe_isif_cleanup (struct vpfe_isif_device *isif, +struct platform_device *pdev) {struct resource *res;int i =0 ;
@@ -2081,17 +2086,7 @@ int vpfe_isif_init(struct vpfe_isif_device *isif, struct platform_device *pdev)return status; isif_fail:v4l2_ctrl_handler_free (&isif->ctrls); -isif_remove (isif, pdev); +vpfe_isif_cleanup (isif, pdev);return status; } -/* -* vpfe_isif_cleanup - isif module cleanup -* @isif: pointer to isif subdevice -* @dev: pointer to platform device structure -*/ -void -vpfe_isif_cleanup (struct vpfe_isif_device *isif,struct platform_device *pdev) -{ -isif_remove (isif, pdev); -}
Signature · 1 line
2.19.1