staging: panel: remove duplicate code
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 7 Apr 2015 08:25:01 +0000 (13:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Apr 2015 15:10:51 +0000 (17:10 +0200)
commit9059c615a8ba503cb5a7823d7f943a384e6063e3
treef6df13f357b1f4361f3bc5dadedbc2206f43f772
parent67620987c556ee70034bd71703d61d07b4d96e60
staging: panel: remove duplicate code

both the misc_deregister(), parport_release() and
parport_unregister_device() is there in the module_exit function also.
detach is called from parport_unregister_driver() and by the time
detach executes misc_deregister(), parport_release() and
parport_unregister_device() has already executed marking
keypad_initialized and lcd.initialized  as false. so this part of the
code will never execute.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/panel/panel.c