]> git.baikalelectronics.ru Git - kernel.git/commit
[media] exynos4-is: Fix regulator/gpio resource releasing on the driver removal
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 18 Apr 2013 11:55:23 +0000 (08:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Apr 2013 12:35:23 +0000 (09:35 -0300)
commitdf1b08ceddbf8895d6ee888842765d7ffe84c7e8
treeb206d6ae2070ab8950bfcd2e4956d53f3aab6181
parentaf224773ff2ce2d19929dfc3cc1c7ac586d4ea6c
[media] exynos4-is: Fix regulator/gpio resource releasing on the driver removal

Remove regulator_bulk_free() calls as devm_regulator_bulk_get() function
is used to get the regulators so those will be freed automatically while
the driver is removed.
Missing gpio free is fixed by requesting a gpio with the devm_* API.
All that is done now in the I2C client driver remove() callback is the
media entity cleanup 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/fimc-is-sensor.c