From: Sudip Mukherjee Date: Tue, 7 Apr 2015 08:25:01 +0000 (+0530) Subject: staging: panel: remove duplicate code X-Git-Tag: omap-for-v4.2/fixes-rc1^2~92^2~966 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9059c615a8ba503cb5a7823d7f943a384e6063e3;p=pandora-kernel.git 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 Reviewed-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed