Commit 4ce4646c authored by Dafna Hirschfeld's avatar Dafna Hirschfeld Committed by Mauro Carvalho Chehab

media: vimc: remove the function vimc_unregister

The function vimc_unregister is called only from
one place in the code and has only 3 lines so it
has no justification.
Signed-off-by: default avatarDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 5c990fa0
...@@ -268,13 +268,6 @@ static int vimc_register_devices(struct vimc_device *vimc) ...@@ -268,13 +268,6 @@ static int vimc_register_devices(struct vimc_device *vimc)
return ret; return ret;
} }
static void vimc_unregister(struct vimc_device *vimc)
{
vimc_unregister_subdevs(vimc);
media_device_unregister(&vimc->mdev);
v4l2_device_unregister(&vimc->v4l2_dev);
}
static int vimc_probe(struct platform_device *pdev) static int vimc_probe(struct platform_device *pdev)
{ {
struct vimc_device *vimc; struct vimc_device *vimc;
...@@ -321,7 +314,9 @@ static int vimc_remove(struct platform_device *pdev) ...@@ -321,7 +314,9 @@ static int vimc_remove(struct platform_device *pdev)
dev_dbg(&pdev->dev, "remove"); dev_dbg(&pdev->dev, "remove");
vimc_unregister(vimc); vimc_unregister_subdevs(vimc);
media_device_unregister(&vimc->mdev);
v4l2_device_unregister(&vimc->v4l2_dev);
v4l2_device_put(&vimc->v4l2_dev); v4l2_device_put(&vimc->v4l2_dev);
return 0; return 0;
......
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