]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tilcdc: remove submodule destroy calls
authorGuido Martínez <guido@vanguardiasur.com.ar>
Tue, 17 Jun 2014 14:17:10 +0000 (11:17 -0300)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Jul 2014 01:25:32 +0000 (11:25 +1000)
commit6399023e98afb3768445e02ae81b2c04b2539a24
tree22f5da5209c5d9475857630c99576128a7703db9
parenta8acbe77513ab2c62fb7bc4aac975f458d7265ef
drm/tilcdc: remove submodule destroy calls

The TI tilcdc driver is designed with a notion of submodules. Currently,
at unload time, these submodules are iterated and destroyed.

Now that the tilcdc remove order is fixed, this can be handled perfectly
by the kernel using the device infrastructure, since each submodule
is a kernel driver itself, and they are only destroy()'ed at unload
time. Therefore we move the destroy() functionality to each submodule's
remove().

Also, remove some checks in the unloading process since the new code
guarantees the resources are allocated and need a release.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Tested-by: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tilcdc/Module.symvers [new file with mode: 0644]
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h
drivers/gpu/drm/tilcdc/tilcdc_panel.c
drivers/gpu/drm/tilcdc/tilcdc_slave.c
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c