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>
Mon, 13 May 2013 21:51:38 +0000 (17:51 -0400)
commitd398f56ed7ddf8a2f3ffdd15323bc31296d14c5d
tree7ca3e3210a3f775b7277d9e0c34b3a0faa42211c
parent218468f40d08600803ecb389c8b5139bbf736fa4
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