+ fled_cdev, NULL,<snip>
I am ok with all the reasoning in the previous comments. This one I would say just fall through to out.I kept the goto in, in case more code is added below that statement so the+ &v4l2_sd_cfg);Not sure why this is here you are not in a for loop and this will fall
+ if (IS_ERR(priv->v4l2_flash)) {
+ ret = PTR_ERR(priv->v4l2_flash);
+ goto err;
through anyway to the err label.
author doesn't forget that this error needs to be handled.
If wanted I can remove it of course.