linux/drivers/staging/media
Ben Hutchings 9105b8b200 [media] staging: lirc_serial: Fix init/exit order
Currently the module init function registers a platform_device and
only then allocates its IRQ and I/O region.  This allows allocation to
race with the device's suspend() function.  Instead, allocate
resources in the platform driver's probe() function and free them in
the remove() function.

The module exit function removes the platform device before the
character device that provides access to it.  Change it to reverse the
order of initialisation.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-11-24 18:16:40 -02:00
..
as102 [media] staging: as102: Add missing function argument 2011-11-24 14:46:05 -02:00
cxd2099
dt3155v4l
easycap
go7007
lirc [media] staging: lirc_serial: Fix init/exit order 2011-11-24 18:16:40 -02:00
solo6x10 Merge tag 'v3.2-rc2' into staging/for_v3.3 2011-11-23 19:42:09 -02:00
Kconfig
Makefile