From patchwork Fri Jul 29 10:56:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1020102 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6TAx6lM014637 for ; Fri, 29 Jul 2011 10:59:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756241Ab1G2K6l (ORCPT ); Fri, 29 Jul 2011 06:58:41 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:57873 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756164Ab1G2K5D (ORCPT ); Fri, 29 Jul 2011 06:57:03 -0400 Received: from axis700.grange (dslb-084-061-105-216.pools.arcor-ip.net [84.61.105.216]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0Lp6Wq-1RIV3q1CMO-00euj5; Fri, 29 Jul 2011 12:57:02 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 25B7618B04B; Fri, 29 Jul 2011 12:57:01 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1QmkkX-0007oN-0b; Fri, 29 Jul 2011 12:57:01 +0200 From: Guennadi Liakhovetski To: linux-media@vger.kernel.org Cc: Robert Jarzmik , Eric Miao Subject: [PATCH 29/59] ARM: PXA: use gpio_set_value_cansleep() on pcm990 Date: Fri, 29 Jul 2011 12:56:29 +0200 Message-Id: <1311937019-29914-30-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1311937019-29914-1-git-send-email-g.liakhovetski@gmx.de> References: <1311937019-29914-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:d817Iqa4+XT3NtBTa8zjH5UN51I43mfCC851UTe0+9X aepHH0TOHWhDxvqVyAGhI0HO0bl/sRRCn8LEmLLYrVB7nuPvKP Hdk+EroeymajMDHAI3t8xO5iHTKOHiFoYZiCk+XQke2qYCgSQJ YZn4oxRJBJtzhhrFOtxaAIuGwm2/OKSubivx3GI44rZN0hgaZv K01JQgO1A40L8l/6/h+5pxWOT8jQMOelaePliJF9uk= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 29 Jul 2011 10:59:07 +0000 (UTC) Camera-switching GPIOs are provided by a i2c GPIO extender, switching them can send the caller to sleep. Use the GPIO API *_cansleep methods explicitly to avoid runtime warnings. Signed-off-by: Guennadi Liakhovetski Cc: Robert Jarzmik Cc: Eric Miao --- arch/arm/mach-pxa/pcm990-baseboard.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index 6d5b7e0..8ad2597 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c @@ -395,9 +395,9 @@ static int pcm990_camera_set_bus_param(struct soc_camera_link *link, } if (flags & SOCAM_DATAWIDTH_8) - gpio_set_value(gpio_bus_switch, 1); + gpio_set_value_cansleep(gpio_bus_switch, 1); else - gpio_set_value(gpio_bus_switch, 0); + gpio_set_value_cansleep(gpio_bus_switch, 0); return 0; }