Re: [PATCH 1/2] extcon: Unregister compat class at module unload to fix oops

2012-09-24 Thread Chanwoo Choi
[...] > > ---[ end trace dd512cc03fe1c369 ]--- > FATAL: Error inserting extcon_class > (/lib/modules/3.6.0-rc6-00178-g811315f/kernel/drivers/extcon/extcon_class.ko): > Cannot allocate memory > > This patch fixes this. > > Cc: sta...@vger.kernel.org > Signed-off-by: Peter Huewe > --- Applied,

[PATCH 1/2] extcon: Unregister compat class at module unload to fix oops

2012-09-21 Thread Peter Huewe
If you compile extcon with CONFIG_ANDROID and then load and unload the module you get a simple oops as the driver does not unregister its compat class and thus cannot register it again. Full trace: root@(none):~# modprobe extcon_class root@(none):~# rmmod extcon_class root@(none):~# modprobe extc