aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ Freyensee <james_p_freyensee@linux.intel.com>2010-12-08 10:57:43 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-08 10:57:43 +0000
commitda3cb978c6bf60917f7b2c614a12a59570dbabfb (patch)
treeff924d4a1f091606cb494e0a8fbe05df64292278
parentb4718e4b7030a0956e9506f581e959e15bde1b91 (diff)
downloadmrst-s0i3-test-da3cb978c6bf60917f7b2c614a12a59570dbabfb.tar.gz
mrst-s0i3-test-da3cb978c6bf60917f7b2c614a12a59570dbabfb.tar.xz
mrst-s0i3-test-da3cb978c6bf60917f7b2c614a12a59570dbabfb.zip
pti: remove incorrect mutex handling on exit
This patch removes code that was deemed incorrect from an observed code review on a different driver on the Meego kernel list. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
-rw-r--r--drivers/misc/pti.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
index c8df8e918aa..71aa7835e86 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -857,13 +857,6 @@ static void __exit pti_exit(void)
{
int retval;
- /* If some thead is hanging onto the alloclock, force it to release
- * it because we are shutting down.
- */
- if (mutex_is_locked(&alloclock) == 1)
- mutex_unlock(&alloclock);
- mutex_destroy(&alloclock);
-
retval = misc_deregister(&pti_char_driver);
if (retval) {
pr_err("%s(%d): CHAR unregistration failed of pti driver\n",