@@ -1943,8 +1943,7 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev)
struct omap2video_device, v4l2_dev);
for (k = 0; k < pdev->num_resources; k++) {
-
- vout = kzalloc(sizeof(struct omap_vout_device), GFP_KERNEL);
+ vout = kzalloc(sizeof(*vout), GFP_KERNEL);
if (!vout)
return -ENOMEM;
@@ -2095,7 +2094,7 @@ static int __init omap_vout_probe(struct platform_device *pdev)
goto err_dss_init;
}
- vid_dev = kzalloc(sizeof(struct omap2video_device), GFP_KERNEL);
+ vid_dev = kzalloc(sizeof(*vid_dev), GFP_KERNEL);
if (vid_dev == NULL) {
ret = -ENOMEM;
goto err_dss_init;