Commit 4607c248 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: ti-vpe: cal: Drop struct cal_dev v4l2_dev field

The v4l2_dev field of the cal_dev structure is initialized but never
used. Drop it.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 2f63379b
...@@ -279,7 +279,6 @@ struct cal_dev { ...@@ -279,7 +279,6 @@ struct cal_dev {
void __iomem *base; void __iomem *base;
struct resource *res; struct resource *res;
struct platform_device *pdev; struct platform_device *pdev;
struct v4l2_device v4l2_dev;
const struct cal_data *data; const struct cal_data *data;
...@@ -2288,10 +2287,6 @@ static int cal_probe(struct platform_device *pdev) ...@@ -2288,10 +2287,6 @@ static int cal_probe(struct platform_device *pdev)
return -ENODEV; return -ENODEV;
} }
/* set pseudo v4l2 device name so we can use v4l2_printk */
strscpy(cal->v4l2_dev.name, CAL_MODULE_NAME,
sizeof(cal->v4l2_dev.name));
/* save pdev pointer */ /* save pdev pointer */
cal->pdev = pdev; cal->pdev = pdev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment