From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 908EBC7EE23 for ; Fri, 2 Jun 2023 01:53:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbjFBBxx (ORCPT ); Thu, 1 Jun 2023 21:53:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjFBBxw (ORCPT ); Thu, 1 Jun 2023 21:53:52 -0400 X-Greylist: delayed 62 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 01 Jun 2023 18:53:51 PDT Received: from fgw23-7.mail.saunalahti.fi (fgw23-7.mail.saunalahti.fi [62.142.5.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FE75C0 for ; Thu, 1 Jun 2023 18:53:51 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 2c58c2fe-00e8-11ee-b972-005056bdfda7; Fri, 02 Jun 2023 04:52:47 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Fri, 2 Jun 2023 04:52:47 +0300 To: Nikita Shubin Cc: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Sergey Shtylyov , Damien Le Moal , Michael Peters , Kris Bahnsen , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 38/43] pata: cirrus: drop legacy pinctrl Message-ID: References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601054549.10843-20-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601054549.10843-20-nikita.shubin@maquefel.me> Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Thu, Jun 01, 2023 at 08:45:43AM +0300, Nikita Shubin kirjoitti: > Drop legacy acquire/release since we are using > pinctrl for this now. ... > drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); > - if (!drv_data) { > - err = -ENXIO; Wondering why it's not ENOMEM even in the original code? > - goto err_rel_gpio; > - } > + if (!drv_data) > + return -ENXIO; -- With Best Regards, Andy Shevchenko