Received: by 10.192.165.148 with SMTP id m20csp1771898imm; Thu, 26 Apr 2018 01:56:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx49TpirUUwefwdoUSDtpU+Vo6zbq1bwtCL1R+o9WCCaoFEaucPAcX50Yv0r7fWYQ4uBUpPjB X-Received: by 2002:a17:902:274a:: with SMTP id j10-v6mr33587932plg.393.1524733004441; Thu, 26 Apr 2018 01:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524733004; cv=none; d=google.com; s=arc-20160816; b=NLUOakB66ntJLI3bBwnv7Qv8E4lYMr/aRC2prszIuxvco73gHFNcMSMCNDSMOr1EBg ZnJ7rDZgSgq3ZZFFi3me6onp5dt1NmA1qyCTeaSDpotg9Sp8k9cslBmFydRBt6Eq/mwj dFjVEvlPnThEJoQfnKtOW7vEpzdVQEbHNkNSE1WqC+Z3vRGz3nbQY3cCC2HP4YqRdzhk 7nV/K02UvOqxzG8dinGLx8ONYxX6tRDDWealDnBA+y2Pmejo4axNnU9Cbjd2tdvTHFEA uMBUY75omCZiSIf1Oc5WM8lZhjM4pP3kymk22cbnTrJgrjmK5721LfdiliSxfV6Dh6+A 323w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=hU5FXEWc+uiOnBCNzHi77rqnIeKqwSZvkLGgu3DHGbc=; b=t4dUx5B4jYtRu0aRK5TF9Nvru2CLq99ctIEBQ1E+PRB+8tmfruX5mgJ58v7nVRrMu2 WszqcpoANeYwRgeN/y9T4CbIj4TzEXzM934BgKU2kLUt8K++03kpHyUUX8gOt8UHsmid 0m6Q9D1m6Zz19DCb+XQnzjYQUKaW7UCsXfQoJQoieHDw04o9/HPrWpj2rw8Q0JnFa0xx px59RzW8CJriquUsjYtCbPw9EXgPbncOsTPQ7irgCpSD3K/34ndKxYZupBZaM7ZkrmlI fiyDP4EjZkWWOmJsdDH80m9SzdDAhBxOOmOvMc+nadjGN9N+1LsGVzyjsWKoJAzdKnqP eZTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QhaqIzG9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b38-v6si19277943pla.124.2018.04.26.01.56.30; Thu, 26 Apr 2018 01:56:44 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=QhaqIzG9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755036AbeDZIy4 (ORCPT + 99 others); Thu, 26 Apr 2018 04:54:56 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:43702 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754754AbeDZIx2 (ORCPT ); Thu, 26 Apr 2018 04:53:28 -0400 Received: by mail-lf0-f67.google.com with SMTP id g12-v6so13437691lfb.10 for ; Thu, 26 Apr 2018 01:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hU5FXEWc+uiOnBCNzHi77rqnIeKqwSZvkLGgu3DHGbc=; b=QhaqIzG9/Wm9QFqAOWMKeTUP7SEbO9cMJy87+BH8Ek0mtJdV94Ktu7otlRxYfj66K7 5Uvg4DJd+zvlk2LqbWywLL7D47doseuAlSSg144Dx7i0OZC2K57FFmOCTf2hsvpI61zt pgXEyZjridNIYiW39fZjdNCYkZfdS9jLlEC88= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hU5FXEWc+uiOnBCNzHi77rqnIeKqwSZvkLGgu3DHGbc=; b=Q3FSPQu5Jk7ba/CZps1jJ6aDFvTjT7k07dMW+FXsoCv6dML1A9T8aWnT9fMKe48paG girjHm2t3oH3udjhfTleZoLF4DU1Od1fUUHK6FqqAbT90ORbsdP1VJGs/Nd/7Wcmz1mF JIMjYLi3euH/EUZ79TVVfBKSNr2seBDmSLgHKHt4Cf9B5Cjoa7OkYyk7Iq0qw6aSP/9P 2wg6tOBP2lcDHWiASvWywSYfk7T6GIYdqyLMHtWpz6TvUqcmrLk50LEzzA08fDlSyo1e /dfS4QI08Q3ruvw/kOEpat5uqfr+s2tIMMbhWniikkzXc8IYDhM6/emvkAS7MqiBN7mI oB9Q== X-Gm-Message-State: ALQs6tBOeaVu0EK8eeGy8+LZPKBoOOG5VK/k00qrE2/ZjQXK6NbpCj0c New2eW9xynLt3MS7dmiKL3EmjQ== X-Received: by 2002:a19:8e8e:: with SMTP id a14-v6mr17038210lfl.145.1524732806570; Thu, 26 Apr 2018 01:53:26 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id u83-v6sm681097lff.65.2018.04.26.01.53.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Apr 2018 01:53:25 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Greg Kroah-Hartman , linux-pm@vger.kernel.org Cc: Ulf Hansson , Kevin Hilman , Geert Uytterhoeven , Viresh Kumar , Vincent Guittot , Mark Brown , Vinod Koul , Sanyog Kale , Pierre-Louis Bossart , Wolfram Sang , Russell King , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 08/11] i2c: Respect all error codes from dev_pm_domain_attach() Date: Thu, 26 Apr 2018 10:53:07 +0200 Message-Id: <1524732790-2234-9-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524732790-2234-1-git-send-email-ulf.hansson@linaro.org> References: <1524732790-2234-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The limitation of being able to check only for -EPROBE_DEFER from dev_pm_domain_attach() has been removed. Hence let's respect all error codes and bail out accordingly. Cc: Wolfram Sang Signed-off-by: Ulf Hansson --- drivers/i2c/i2c-core-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index 1ba40bb..a17f46a 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -363,7 +363,7 @@ static int i2c_device_probe(struct device *dev) goto err_clear_wakeup_irq; status = dev_pm_domain_attach(&client->dev, true); - if (status == -EPROBE_DEFER) + if (status) goto err_clear_wakeup_irq; /* -- 2.7.4