Received: by 10.223.176.46 with SMTP id f43csp2153425wra; Sun, 21 Jan 2018 12:35:01 -0800 (PST) X-Google-Smtp-Source: AH8x225VgDAZAbXv6WCeB1J852oI9Pl5wzbLzjBQGI1d22HBFKeGy1HGMwoL2B5O89lTuyZsev4a X-Received: by 10.101.73.131 with SMTP id r3mr5258286pgs.76.1516566901267; Sun, 21 Jan 2018 12:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516566901; cv=none; d=google.com; s=arc-20160816; b=YSJvety6vxthYOZ4FvzIt0lSuVYfInq4ORzdYoDm4V7BcV0U7FnRwoxRjorbbuTiTU aaxV+X3YnWICIONkA6dZey0iNoi0ZFyySBsE9h4zSOPEs02R7UlfF9Xus0rtNCXYPKqZ +4PELMvQ02loQsNUtUrZbBtdH/mtqsmtX4vpf78mGBlyp5si2ib+iXg7OKYMzWfhrjyK 7QtKAIfwJr9iN0psbTJl4P1M1pSTKmKQy4fVGTPFkopqtBhUeT7UcIA5dlAUjfVL9ndN ASde82ZVynqOMykxDG2tVp521rXGLMBUTPAdHofSDnnCNkTN34WXe1UsX85t92Ih1ITM wCjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=tchlfHODfw2xj7vA8SdAAV7w2RtstSG3maKFD3Vlgb8=; b=AtnGOk0KLZHfCvIgaDcXM8GbngtjFaTM27SIUmL4e1AyklgVzLThcBl4ZZDVYA9LcD P911kQwDgDalWcJLkeHapa7tJhmW3lX+kN4RygaVKCzcr+7Ync/A0chriCfqLPBBsc+Q Vn8ICcrECr0+vrCN2vu0iHV+LRCiYRWgM+bDSppopD/8gjdj+tx6ce63J4HEgY5P1D5q EwOKJdFKSd6bPwfDQyukIHhyV+BAhZBmKUpC7zdCpLZROs9sWjCuSIJpxLvJKqu6X5FJ skZr/8EQu+Of/u9EfBCynTHz4SzJ69J1X3BhqL4TnL28cNQ5szmhRosCw/97iYEb/VBe rtKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=zBd9MNlN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si2771418pll.4.2018.01.21.12.34.47; Sun, 21 Jan 2018 12:35:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=zBd9MNlN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751085AbeAUUdK (ORCPT + 99 others); Sun, 21 Jan 2018 15:33:10 -0500 Received: from vern.gendns.com ([206.190.152.46]:37630 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbeAUUdI (ORCPT ); Sun, 21 Jan 2018 15:33:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tchlfHODfw2xj7vA8SdAAV7w2RtstSG3maKFD3Vlgb8=; b=zBd9MNlNjAdMhIYKugwtCDAAEb Y4Xvdvap1405kHVbbX3+76Naz16IBm4vUuPD5BMt6HBIaoVO3pK0DnmE6dtwM/IuT4/MVpOZLFNSo Hnx2s9thH2ryCoj65SJAu3UAcErvzT51UozANvnp2Hp9Ime58AdbugX4W8CMDlxXlr9+tZORtQ1g2 Ne6uvhr3bwE1wSpuTHUpoz42JlEGR842nQRlhvPJ8X8HnMlVswHCbL1zyGrR4J/ZTO3yHiBigQ33J BUnmfVwTqe1pKdGeurnDOUhpy8bAt0LgkaSWgYjF9+7EfNgNOQSUFG1kV1Ln1d5/lDpRES0AWTMUV a1O/qDKA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:46240 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1edMI8-003xiG-8R; Sun, 21 Jan 2018 15:32:36 -0500 From: David Lechner To: linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, David Lechner , Linus Walleij Subject: [PATCH] gpiolib: suppress error message on EPROBE_DEFER Date: Sun, 21 Jan 2018 14:32:54 -0600 Message-Id: <1516566774-1786-1-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This suppresses printing an error message during probe of gpio drivers when the error is EPROBE_DEFER. Cc: Linus Walleij Signed-off-by: David Lechner --- drivers/gpio/gpiolib.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 44332b7..134d0e4 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1289,9 +1289,10 @@ int gpiochip_add_data_with_key(struct gpio_chip *chip, void *data, err_free_gdev: ida_simple_remove(&gpio_ida, gdev->id); /* failures here can mean systems won't boot... */ - pr_err("%s: GPIOs %d..%d (%s) failed to register\n", __func__, - gdev->base, gdev->base + gdev->ngpio - 1, - chip->label ? : "generic"); + if (status != -EPROBE_DEFER) + pr_err("%s: GPIOs %d..%d (%s) failed to register\n", __func__, + gdev->base, gdev->base + gdev->ngpio - 1, + chip->label ? : "generic"); kfree(gdev); return status; } -- 2.7.4