Remove gc2235_init() function definition and call, as it is used only
once in gc2235.c file. Replace the function call with return value,
__gc2235_init() function call.
Signed-off-by: Varsha Rao <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
}
static int is_init;
-static int gc2235_init(struct v4l2_subdev *sd)
-{
- return __gc2235_init(sd);
-}
static int power_ctrl(struct v4l2_subdev *sd, bool flag)
{
else {
ret = power_up(sd);
if (!ret)
- ret = gc2235_init(sd);
+ ret = __gc2235_init(sd);
is_init = 1;
}
return ret;