From patchwork Tue Nov 3 10:08:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 539282 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 6EEA814030E for ; Tue, 3 Nov 2015 21:08:48 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ingics_com.20150623.gappssmtp.com header.i=@ingics_com.20150623.gappssmtp.com header.b=Vg7xNT7K; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752823AbbKCKIr (ORCPT ); Tue, 3 Nov 2015 05:08:47 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34114 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752405AbbKCKIp (ORCPT ); Tue, 3 Nov 2015 05:08:45 -0500 Received: by padhx2 with SMTP id hx2so6797595pad.1 for ; Tue, 03 Nov 2015 02:08:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics_com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:content-type:mime-version :content-transfer-encoding; bh=S1hhYaa3OwuIfO3raGN2BYVFhtKuEYxABqAt2ULyYQA=; b=Vg7xNT7KFxvNQxoP8oNKQ4N7zA7DaRdDMcegv58GX3LdIQcjGC9mgfSGo5iWDy8acJ oZ03S5qx59xHLDWIsMQ9VLTM9rq56tHm2Ls2qzaR6wTCkmbbEOpXbjJbkZMU2TVjoUjC TXJxpGt6eVIVbtCURTaCmWpSHX99CyqoqWVEk/ojCPNOHdrqCMWr1iWFLgmV6hgKM57I PhooferpuKQXOnu85QDxeciWc+Oc6LVlxQ2G8T7ekd8A+FgY1sPH2xO4qe+/8gcWX9jn c2DkuAklJNSdFZLMqTK4XQpwG0k/7pxjfWUz942PTHJdL4DGLcSyWxHVM5ETvNWQogJQ wtzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=S1hhYaa3OwuIfO3raGN2BYVFhtKuEYxABqAt2ULyYQA=; b=AvKU2LS/dFTJBQp8RL6eooF7dQUJeR411pTsjEk8UO1WPM82b4LuIYR+D3IasxE4MA z80pIILHTbnBPhzzx7Iv1X+NxbbGZ2iyTbStL6176c5uRLx/tDrTxcPfOIvxQ8BUZuhB jNHV1EihPeQbVOOCZqHwnD0rip1HI72MzanqlRIBMhlMuZDftzmQCjYvrToOaShLMjoG 0VQhXd29SLAIH76DbHyfLo8iVmqvTW8pAsqERCw+mEfoTDH8HFwCoC3cqClYEmQylRIh XRIMB1hczL+4jzoNH+NnOynwA6m2J2SmeU7Ysuv1SHmFZlgfgzWWkvfIWSH8lYDupo+e afiQ== X-Gm-Message-State: ALoCoQlVxSCcqMWfDwbDO3PzAp/A84kMBcX1qrcrZl+2kbgRV/vy5+h7Unj1tO5fzBu5k1DeBndt X-Received: by 10.66.241.35 with SMTP id wf3mr33052401pac.53.1446545324577; Tue, 03 Nov 2015 02:08:44 -0800 (PST) Received: from phoenix (118-167-8-21.dynamic.hinet.net. [118.167.8.21]) by smtp.gmail.com with ESMTPSA id qb7sm28656052pab.47.2015.11.03.02.08.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2015 02:08:43 -0800 (PST) Message-ID: <1446545320.6627.0.camel@ingics.com> Subject: [PATCH] pwm: brcmstb: Don't set can_sleep flag From: Axel Lin To: Thierry Reding Cc: Brian Norris , Gregory Fong , Florian Fainelli , linux-pwm@vger.kernel.org Date: Tue, 03 Nov 2015 18:08:40 +0800 X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org The .can_sleep flag is used for some PWM controllers that can't be used in atomic context. Not such case for this driver, so don't set the can_sleep flag. Signed-off-by: Axel Lin Acked-by: Florian Fainelli Reviewed-by: Brian Norris --- drivers/pwm/pwm-brcmstb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pwm/pwm-brcmstb.c b/drivers/pwm/pwm-brcmstb.c index 423ce08..f58039b 100644 --- a/drivers/pwm/pwm-brcmstb.c +++ b/drivers/pwm/pwm-brcmstb.c @@ -270,7 +270,6 @@ static int brcmstb_pwm_probe(struct platform_device *pdev) p->chip.ops = &brcmstb_pwm_ops; p->chip.base = -1; p->chip.npwm = 2; - p->chip.can_sleep = true; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); p->base = devm_ioremap_resource(&pdev->dev, res);