]> git.baikalelectronics.ru Git - kernel.git/commit
Input: fix resetting name, phys and uniq when unregistering device
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 27 Jun 2006 12:30:31 +0000 (08:30 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 27 Jun 2006 21:05:06 +0000 (14:05 -0700)
commite0c377955d65dd93803685d79cc7b04dac9a507c
treedd3344add0056eb8f33fde2c3ffeb4fecd0f2baa
parent3b47a42cfae29ba16e6d0f0a68132679303ebdd6
Input: fix resetting name, phys and uniq when unregistering device

It should be done before calling class_device_unregister() because
it will destroy the device and free memory if there are no other
references to the device.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/input/input.c