]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-csis: Convert to the device managed resources
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 14 Feb 2012 16:23:46 +0000 (13:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Mar 2012 10:41:43 +0000 (07:41 -0300)
commiteecf9d6f2684247fb470d48dc0ca5e1e791689a0
treea1d92507d42deafff0e89da0a7fa28d79cc20e86
parentf5cf7aec6565a5e947f130a7aed6db2e677f8334
[media] s5p-csis: Convert to the device managed resources

The devm_* functions are used in the platform device probe() for data
that is freed on driver removal. The managed device layer takes care
of undoing actions taken in the probe callback() and freeing resources
on driver detach. This eliminates the need for manually releasing
resources and simplifies error handling.

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/video/s5p-fimc/mipi-csis.c