From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934369AbZJJPjW (ORCPT ); Sat, 10 Oct 2009 11:39:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754536AbZJJPjU (ORCPT ); Sat, 10 Oct 2009 11:39:20 -0400 Received: from www.tglx.de ([62.245.132.106]:55655 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934335AbZJJPjR (ORCPT ); Sat, 10 Oct 2009 11:39:17 -0400 Message-Id: <20091010153350.127093710@linutronix.de> User-Agent: quilt/0.47-1 Date: Sat, 10 Oct 2009 15:37:31 -0000 From: Thomas Gleixner To: LKML Cc: Andrew Morton , Ingo Molnar , Peter Zijlstra , Frederic Weisbecker , Vincent Sanders , John Kacur , Jonathan Corbet , Christoph Hellwig , Jim Cromie Subject: [patch 26/28] drivers: Remove BKL from pc8736x_gpio References: <20091010153314.827301943@linutronix.de> Content-Disposition: inline; filename=pc8736x_gpio-remove-bkl.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cycle_kernel_lock() was added during the big BKL pushdown. It should ensure the serializiation against driver init code. In this case there is nothing to serialize. Remove it. Signed-off-by: Thomas Gleixner Cc: Jim Cromie --- drivers/char/pc8736x_gpio.c | 2 -- 1 file changed, 2 deletions(-) Index: linux-2.6-tip/drivers/char/pc8736x_gpio.c =================================================================== --- linux-2.6-tip.orig/drivers/char/pc8736x_gpio.c +++ linux-2.6-tip/drivers/char/pc8736x_gpio.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #define DEVNAME "pc8736x_gpio" @@ -223,7 +222,6 @@ static int pc8736x_gpio_open(struct inod unsigned m = iminor(inode); file->private_data = &pc8736x_gpio_ops; - cycle_kernel_lock(); dev_dbg(&pdev->dev, "open %d\n", m); if (m >= PC8736X_GPIO_CT)