From patchwork Thu Sep 29 02:41:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Reid X-Patchwork-Id: 9355663 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DEF8260756 for ; Thu, 29 Sep 2016 02:41:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D57452964E for ; Thu, 29 Sep 2016 02:41:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA0E1297BD; Thu, 29 Sep 2016 02:41:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E9332964E for ; Thu, 29 Sep 2016 02:41:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751027AbcI2ClN (ORCPT ); Wed, 28 Sep 2016 22:41:13 -0400 Received: from 203-59-230-133.perm.iinet.net.au ([203.59.230.133]:54220 "EHLO preid-centos7.electromag.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750719AbcI2ClN (ORCPT ); Wed, 28 Sep 2016 22:41:13 -0400 Received: by preid-centos7.electromag.com.au (Postfix, from userid 1000) id F26BB3027A584; Thu, 29 Sep 2016 10:41:06 +0800 (AWST) From: Phil Reid To: broonie@kernel.org, preid@electromag.com.au, linux-spi@vger.kernel.org Subject: [PATCH 1/1] spi: sc18is602: Change gpiod_set_value to gpiod_set_value_cansleep Date: Thu, 29 Sep 2016 10:41:02 +0800 Message-Id: <1475116862-11697-1-git-send-email-preid@electromag.com.au> X-Mailer: git-send-email 1.8.3.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To avoid warning when using i2c gpio expander change call to the cansleep variant. There should be no issue with sleeping in the drivers probe function. Signed-off-by: Phil Reid --- drivers/spi/spi-sc18is602.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-sc18is602.c b/drivers/spi/spi-sc18is602.c index 5666b5d..f63714f 100644 --- a/drivers/spi/spi-sc18is602.c +++ b/drivers/spi/spi-sc18is602.c @@ -264,7 +264,7 @@ static int sc18is602_probe(struct i2c_client *client, hw->reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); if (IS_ERR(hw->reset)) return PTR_ERR(hw->reset); - gpiod_set_value(hw->reset, 0); + gpiod_set_value_cansleep(hw->reset, 0); hw->master = master; hw->client = client;