staging: nvec: cleanup childs on remove
authorMarc Dietrich <marvin24@gmx.de>
Mon, 29 Apr 2013 21:14:52 +0000 (23:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 May 2013 11:07:50 +0000 (07:07 -0400)
commitc2b62f60f67e0375c09d3c385ba90999d39d3dce
tree4bd2dcc1e0c9b73cbdcea4fce495022ceb998f46
parent111c158787b2a2036c444f735370cb6aef823f78
staging: nvec: cleanup childs on remove

Disable device functions and unregister notifier if available. The
serio device must not be "kzallocated". Otherwise serio_unregister_port
will fail because the device is already freed.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec.c
drivers/staging/nvec/nvec_kbd.c
drivers/staging/nvec/nvec_power.c
drivers/staging/nvec/nvec_ps2.c