]> git.baikalelectronics.ru Git - kernel.git/commit
x86/olpc/xo1/sci: Don't call input_free_device() after input_unregister_device()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 24 Apr 2013 02:46:24 +0000 (10:46 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Apr 2013 06:44:47 +0000 (08:44 +0200)
commit25e29694474a735853901ddac92f14bc771ee7b5
tree75a1453f240ffc5eb9b96ee583ff82e4e36e8ce9
parent366c50ccdcbcf72ec9ee9199f30881e9055f4d95
x86/olpc/xo1/sci: Don't call input_free_device() after input_unregister_device()

input_free_device() should only be used if
input_register_device() was not called yet or if it failed. Once
device was unregistered use input_unregister_device() and memory
will be freed once last reference to the device is dropped.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: dsd@laptop.org
Cc: pgf@laptop.org
Cc: gregkh@linuxfoundation.org
Link: http://lkml.kernel.org/r/CAPgLHd84cboeucog%2BYNdHvGqTfTROujDKZgSkh3o0B-Q93ee2A@mail.gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/olpc/olpc-xo1-sci.c