[media] exynos4-is: Remove redundant module_put() for MIPI-CSIS module
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 18 Apr 2013 16:49:23 +0000 (13:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Apr 2013 12:36:25 +0000 (09:36 -0300)
Currently there is unbalanced module_put() on the s5p-csis module
which prevents it from being unloaded. The subdev's owner module
has reference count decremented in v4l2_device_unregister_subdev()
so just remove this erroneous call.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/exynos4-is/media-dev.c

index a371ee5e857afe8f553fb7caaf89eb269ef5ddb5..15ef8f28239b797df583fa910720847cd4e14947 100644 (file)
@@ -814,7 +814,6 @@ static void fimc_md_unregister_entities(struct fimc_md *fmd)
                if (fmd->csis[i].sd == NULL)
                        continue;
                v4l2_device_unregister_subdev(fmd->csis[i].sd);
-               module_put(fmd->csis[i].sd->owner);
                fmd->csis[i].sd = NULL;
        }
        for (i = 0; i < fmd->num_sensors; i++) {