diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-12-12 08:16:05 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 17:49:56 -0200 |
commit | 7b43a6f3f517109c2912d82f7f666a84420689bc (patch) | |
tree | d7313ea9607b53640209683ed15aaa1bfcd7f8db /drivers/media/tuners/fc0012-priv.h | |
parent | 969e877cc1e6e91dc76f973d08ad70e2065c56ae (diff) |
[media] s5p-fimc: Change platform subdevs registration method
The previous method of registering platform entities into the main
driver using driver_find() and then iterating over devices bound to
a driver was racy and is being removed here. Nothing was preventing
module from unloading during a call to try_module_get(driver->owner).
Instead, we look up a device first and then check for its driver while
holding device lock.
The platform sub-devices are looked up and registered to the top
level driver. When any sub-device is not yet initialized and ready
the main driver's probe() will be deferred.
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>
Diffstat (limited to 'drivers/media/tuners/fc0012-priv.h')
0 files changed, 0 insertions, 0 deletions