mirror of
https://github.com/torvalds/linux.git
synced 2024-11-04 11:04:38 +00:00
9105b8b200
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> |
||
---|---|---|
.. | ||
as102 | ||
cxd2099 | ||
dt3155v4l | ||
easycap | ||
go7007 | ||
lirc | ||
solo6x10 | ||
Kconfig | ||
Makefile |