]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-fimc: Convert to the device managed resources
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 30 Jan 2012 14:37:59 +0000 (11:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Mar 2012 10:40:40 +0000 (07:40 -0300)
commitc4e91f4743a01d50a25d43c5e6971d5396da7cec
tree38c4466f473c3d600850be2b9c9d15631b3daaea
parenta2dc2817135b4dd68611df46bf7685bff14a2d83
[media] s5p-fimc: 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/fimc-core.c
drivers/media/video/s5p-fimc/fimc-core.h
drivers/media/video/s5p-fimc/fimc-mdevice.c