From: Juerg H. <ju...@gm...> - 2007-08-03 16:14:49
|
Add correct removal of platform device in case the loading of the lirc_serial module fails (for example if the serial port is in use). Otherwise, the lirc_serial platform device stays around and subsequent attempts to load the module result in a kernel Oops: Call Trace: [<ffffffff802f4e94>] kobject_shadow_add+0x16e/0x1a2 [<ffffffff8035b646>] device_add+0xb9/0x605 [<ffffffff8024c08d>] __link_module+0x0/0x25 [<ffffffff8035f2a6>] platform_device_add+0x111/0x147 [<ffffffff8801d036>] :lirc_serial:init_module+0x36/0x300 [<ffffffff8024ea02>] sys_init_module+0x162d/0x1790 [<ffffffff80286422>] sys_newfstat+0x20/0x29 [<ffffffff80209d8e>] system_call+0x7e/0x83 Signed-off-by: Juerg Haefliger <juergh at gmail.com> --- |