Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752972AbbBMN2Q (ORCPT ); Fri, 13 Feb 2015 08:28:16 -0500 Received: from ausc60pc101.us.dell.com ([143.166.85.206]:31029 "EHLO ausc60pc101.us.dell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752532AbbBMN2P (ORCPT ); Fri, 13 Feb 2015 08:28:15 -0500 DomainKey-Signature: s=smtpout; d=dell.com; c=nofws; q=dns; h=X-LoopCount0:X-IronPort-AV:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:User-Agent; b=okBzZPeGpLbzD0bqyr8uIdT8PjmOnw3d11A+D8Z6mA7mD8iVOFbCgT3R FbojH1GfYdQG7ejHzxkLlixSCVtC3r4mMw83RhTZXajgd5Z1ez+x6wTVp Kc3PHodIXhcFOUEbwl0vBMQzXxhcLlJEP38jFz6SNg9RcSwIF9eVD0r4p Y=; X-LoopCount0: from 10.94.54.68 X-IronPort-AV: E=Sophos;i="5.09,571,1418104800"; d="scan'208";a="754720347" Date: Fri, 13 Feb 2015 08:28:10 -0500 From: Parmeshwr Prasad To: Joe Perches Cc: Russell King - ARM Linux , "plagnioj@jcrosoft.com" , "tomi.valkeinen@ti.com" , "trivial@kernel.org" , "linux-fbdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2]Trivial patch: to solve indentation warnings in amba-clcd.c driver Message-ID: <20150213132805.GA1296@linuxteamdev.amer.dell.com> References: <20150213112125.GA25078@linuxteamdev.amer.dell.com> <20150213113515.GW8656@n2100.arm.linux.org.uk> <1423828796.2795.7.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1423828796.2795.7.camel@perches.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6959 Lines: 190 This is second patch in series. In driver in_atomic we should not use to check if code is unning in IRQ. clcdfb_sleep() function is used to give some delay between operation. I have used schedule_timeout() function for same amount of delay. Please review the same. Patch 1/2 I will fix comments and re-submitt. >From 06b275e44a3951ec0a57af59aea2a4c82595e456 Mon Sep 17 00:00:00 2001 From: Parmeshwr Prasad Date: Fri, 13 Feb 2015 06:10:34 -0500 Subject: [PATCH 2/2] Patch to replace in_atomic with proper function from amba-clcd.c driver. In driver code in_atomic should not be used to check the IRQ or kernel context. to remove that I have used schedule_timeout() with respective delay. In this patch I have also removed printk() with respective pr_* functions Signed-off-by: Parmeshwr Prasad --- drivers/video/fbdev/amba-clcd.c | 48 +++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c index 0ddc1f0..7e630f5c 100644 --- a/drivers/video/fbdev/amba-clcd.c +++ b/drivers/video/fbdev/amba-clcd.c @@ -33,8 +33,9 @@ #include