Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1749765rwd; Thu, 1 Jun 2023 22:36:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49ucrjNRGb9HyuwJX/hgdzT1Y/WNijlPF7a0A/Z0ZjebIsCWPS0wNLw1HgchqhIcm1FGDm X-Received: by 2002:a05:6870:3844:b0:196:2f14:b1c7 with SMTP id z4-20020a056870384400b001962f14b1c7mr1141766oal.37.1685684180141; Thu, 01 Jun 2023 22:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685684180; cv=none; d=google.com; s=arc-20160816; b=Ed68N7ZUf7gvPgEtMd3fC/AFL1EQwLit6CD5nP6MW7afe9hgmG12MHoyJar/lvibO+ tTQACF/DutdmS1yeqwRO+8GqxNFIRmvKEtwi4zx76X8S4OiV1G/vpbRnhZsryanBWM1F UYI7EHLOkB1YTPrn6c8jVBw4uT7WDkVXA/BbJF9LgJtOrYEbofc0dH1OxJ7Y1grNjW6X dXDOtikAIPJlVh+EtSVAe0JK9/s3nPR8+4GItOsu+7tf352JbGij/aklrdEoRbWLFCTI j7oRv/HKoJEXbGUnxutFMjRLaAMM91CySJaBEXIfSDptezOOtyaJjE6bToAcENZFytol ZZCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=C6/zNsmkntkjRG1u/yTgEYii20pDv4jF1fMPKMSlKwk=; b=tbwr4IUUKzGb9FEmUN3HENxClSTm3e6OPB2NCLOODlK7ZHZ5MAsUQ3fdD9jje3h2a5 pOmSavS9y2R9ZsL/1AAq7/T7CTYVmNo4XJFSZUmMwQaqY1o8D4KvvKFN3r1IP9Qb26NH GHh80/baADjHQFazo7efTkXgNBA50yjDpcIf/+j62mBQw384k6ANexJkQ7qTe7Fd3zKp bi1eGJKdtHNRZjPlpOHaByZpiVHwtjWzCuSYXaZwqPs6sdyQd5KR0m235foj19DpgWty exQxdUIOFG6xiXOWzOwg/3MdUj++HHCcM2PNRKB8sOy+x4mJY0Oeav6hd/WSrzx2WpWz rV0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ZyOi/wLM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a170902db0900b001b0113e1024si342058plx.361.2023.06.01.22.36.05; Thu, 01 Jun 2023 22:36:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ZyOi/wLM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233445AbjFBFE4 (ORCPT + 99 others); Fri, 2 Jun 2023 01:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233613AbjFBFEp (ORCPT ); Fri, 2 Jun 2023 01:04:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC46F1A6; Thu, 1 Jun 2023 22:04:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7ACA064C1B; Fri, 2 Jun 2023 05:04:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1382C433EF; Fri, 2 Jun 2023 05:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685682283; bh=ksCxfJN+aHbHF2OgbiQ4Oveg146c/X4lqmXA6kgRpNY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZyOi/wLM3CDczJl+MEluL+INoSUCjtvbJnRPPimgpxDGIFDGBo/HQ4xJxCeEv+w8J b1/OTrw/zbNYuAWvjMwWTmTwXciQq/fenDDdcQevAASJB2evjvSRDAYSvteWvSxc2t KOqnuaGWwOmHLjVzOmFtymVRdfsYKznwGS4lPZ/wvLgxrBgqEZR3u/J9mTUWUYLgZf 6Hg5pl/zrQnkoeKDY80czMK2bEBR1HHAExDOwByAbE86yrEZMAwvQ++iqIyEQMgFoz O51yNQIrUtcIsZZBFWYm78Uf/WrHkfn+puyXLeuHfvnqv8c6O8+d7Sn9QM12gurxwU Ns17qtcPxUpow== Message-ID: <67f889a1-93ee-0c69-39d9-34e84ade7338@kernel.org> Date: Fri, 2 Jun 2023 14:04:41 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1 38/43] pata: cirrus: drop legacy pinctrl Content-Language: en-US To: andy.shevchenko@gmail.com, Nikita Shubin Cc: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Sergey Shtylyov , Michael Peters , Kris Bahnsen , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601054549.10843-20-nikita.shubin@maquefel.me> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/2/23 10:52, andy.shevchenko@gmail.com wrote: > 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? Indeed... > >> - goto err_rel_gpio; >> - } >> + if (!drv_data) >> + return -ENXIO; > -- Damien Le Moal Western Digital Research