@@ -412,6 +412,9 @@ static int ceu_hw_config(struct ceu_device *ceudev)
cfzsr = (pix->height << 16) | pix->width;
cdwdr = pix->width;
break;
+
+ default:
+ return -EINVAL;
}
camcr |= mbus_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW ? 1 << 1 : 0;
@@ -1568,8 +1571,10 @@ static int ceu_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
ceudev->base = devm_ioremap_resource(dev, res);
- if (IS_ERR(ceudev->base))
+ if (IS_ERR(ceudev->base)) {
+ ret = PTR_ERR(ceudev->base);
goto error_free_ceudev;
+ }
ret = platform_get_irq(pdev, 0);
if (ret < 0) {