fujitsu-laptop: remove unnecessary input_free_device calls
authorAxel Lin <axel.lin@gmail.com>
Tue, 20 Jul 2010 22:19:34 +0000 (15:19 -0700)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:48:56 +0000 (09:48 -0400)
commit8e4e2efdfab5448b0a01be8883d62fc90cce2a7e
treed60bf26b3e07002bce14b128f6fdbed0b24394be
parent24964639e132375f3d7eee9354b565aaa824d1dd
fujitsu-laptop: remove unnecessary input_free_device calls

input_free_device() should only be used if input_register_device() was not
called yet or if it failed.  This patch removes unnecessary
input_free_device calls.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Matthew Garrett <mjg@redhat.com>a
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/fujitsu-laptop.c