Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1241750pxa; Fri, 28 Aug 2020 07:34:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDB8Yf/xYATIsXyHpkWitcywiKd7JccaBbwfcIORKiQ5PtlQjXBMbfNqE5Xmr6FoqbF2nL X-Received: by 2002:a17:906:eb49:: with SMTP id mc9mr2148834ejb.36.1598625293413; Fri, 28 Aug 2020 07:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598625293; cv=none; d=google.com; s=arc-20160816; b=QDIBx4Y1Dz37RJO5HSKecMZsdddle+CYatWJ8zp1PUMzcQ7gvmQtoqHAV6QAasxIQY T+O2IFaNoLcw6SPlaRRvE4HrfwWiKiPZ5g4vwUS3hju09uhDpS551bKjvN9L4iEy1jFZ feUGGSTq6WoHiqo8l3jKnEjXvVck6OQ80AXUCKYldNkLqm2VugQedBZlsJSry38CHuX8 1Ng4EI0LwRRbgyBr/RYGP+jBMDHA7jC8bbkpkVUWPjXiRn2zCTy3wkPN8IfA/MRTH/9z R75itC5T+JSmEpNmeUly4m4HYfHDYhzMHusrISx7xfsP2jCGzBb+PhbT9fBAK1sjZWpY 5W9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rpmT8z3vCoI387yR05xFtDPOcMcQ4MSd+QWPcIK213o=; b=bkKoUNOWwWFTh9BugLQWKlO/j/18vIPHXbF8pb3gI11yZ010f8fbZ8SJBHVSilh03O 9CYlboXBimAsHV4SkYIoHS66WEALzIle9MLtMdvpqc2XlaIvhPFUfUL5T/H06ujV3Hn+ kAuou+bXNfa4YcsrkamdpcLHfU07zDuOvB+lixOoRuLqsOy40pQjh1CY90gJfZwgBEiz /1+wuKBR5XKYoN15gxdylUJRj06X2SlXSUZ2NTWbHXTiVNR/ctPasUr8mVPxkNn/TSiS 66NnPXzDTAyQ/0CdRsaPBe9PTmjFTCuPCitfS23BJFzMFtUmxfXHUmeVpRmlbBhMiQTY wjOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SXuwPRZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id dn20si1102029ejc.104.2020.08.28.07.34.30; Fri, 28 Aug 2020 07:34:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SXuwPRZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726851AbgH1Oda (ORCPT + 99 others); Fri, 28 Aug 2020 10:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbgH1Od2 (ORCPT ); Fri, 28 Aug 2020 10:33:28 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC0D3C061232 for ; Fri, 28 Aug 2020 07:33:27 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id 185so1543191ljj.7 for ; Fri, 28 Aug 2020 07:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rpmT8z3vCoI387yR05xFtDPOcMcQ4MSd+QWPcIK213o=; b=SXuwPRZCasKbRTNTD4rBVmpvxw5674fLb7D3nUZanlM12QZHv9w8tybE1ygcVHuyHf oInP73nxqRqG/m924yhoXHEfVfMd8UNcGRHcOgglzIGOvStEqWimRNUmkiNO8lXlxASX CCpDX7fmupyd+Q7PIqp/vvF9e1lBa3Fh+ICv7e70bLR/G0jT4Gkx4E349CQz9h+h21Rd J9n3piyD5XHKRoxk039mI9PtUaLpkGEORrwzNi7gop6r9A58+nzmeDGzRENEZ4/0F3H/ ri4qABCfHUAxKq3affmj3xX920jjMz3hnbCzfllSaY6dfAWtXQUtN0eWy5GAs/w/o60R vy8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rpmT8z3vCoI387yR05xFtDPOcMcQ4MSd+QWPcIK213o=; b=Rwi2BH6u9OZIyKrZQfTgZcKAawptTpEgjQxFKK37Jgpq9nN/+3LYFLtglOTiyOnzzK xfuDB7b18b7cj360/E+3RHz1xPRG3xV6zFbeLzp8f2JkeRPC9C0hf/EJ0f8hSQYcHbSX yqZ2t5906P4nP07ZQtXfCMqE/6ZAbNQyHzw5txtH029znsrEAXq4eP13W0DVfZhBEgiB NOk4geUuKFxgValjnDcCmCo7RVZGehOKT9xmnKocmyiX4zBGStEVNqDNKLVlQvPbsRCM A3J+ZfmSuZvB6PbpPqpYKHzoALaVKveBWI7mGFcRfDWhjbDS0+xZy7Nmve6DXsXSMAAa kG/g== X-Gm-Message-State: AOAM5300BAjh5FLHyC1FFD8NOzX4FUafQg1GuHcLp3eQOlY+Ay/+YvyL xfgnRyOv89xe7ZSogm5KLL+BdzLoIbdqeC4RlFhxtg== X-Received: by 2002:a2e:558:: with SMTP id 85mr1056326ljf.293.1598625206108; Fri, 28 Aug 2020 07:33:26 -0700 (PDT) MIME-Version: 1.0 References: <20200827192642.1725-1-krzk@kernel.org> <20200827192642.1725-16-krzk@kernel.org> In-Reply-To: <20200827192642.1725-16-krzk@kernel.org> From: Linus Walleij Date: Fri, 28 Aug 2020 16:33:15 +0200 Message-ID: Subject: Re: [PATCH v2 16/18] iio: magnetometer: ak8974: Simplify with dev_err_probe() To: Krzysztof Kozlowski Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Peter Rosin , Kukjin Kim , Michael Hennerich , Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , Marek Vasut , Maxime Coquelin , Alexandre Torgue , Beniamin Bia , Tomasz Duszynski , Andy Shevchenko , linux-iio , "linux-kernel@vger.kernel.org" , Linux ARM , linux-samsung-soc , "open list:ARM/Amlogic Meson..." , linux-stm32@st-md-mailman.stormreply.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 27, 2020 at 9:29 PM Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Linus Walleij Yours, Linus Walleij