Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp790574pxk; Wed, 9 Sep 2020 20:46:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk/66VJofhlnd1DBxaBF7ZWBF+9RmIGmBAVI2z5OSHQImEXXaCZEXdAl+70eBIpEyy0uVa X-Received: by 2002:a17:906:17c6:: with SMTP id u6mr6959762eje.95.1599709587028; Wed, 09 Sep 2020 20:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599709587; cv=none; d=google.com; s=arc-20160816; b=B3aVcXYKJ/6GlKAAGLhZYaaaWvc5YHHuAbk1p2dIMuYhB3kwEL/CXlV1bDWV2aN3SX TGKZwvwTArpCGGd/FgA/ss7UIhht8wYfXJmJ4QyshBDKSTwAUwNmqXikptO+muFTW1vP twEHuHWVT2ZvewCZb+icMogzKnhl4sQ8l5ASjeOqNuXUbtpA4mWoNNA5ub0YrG+EU7yE xYuYW+Exn8aT8FcsJws9a/QpLrya1FnNCC8CllVq3UINqACD/OiGOyf3GZ4ei8pl/A7+ f3FS5xbGVNjwWIiBNSn0tEe7Rrtqe1l1zA0lQc1wAL8Sixjyq2tsDKGsGVC6hbcP5aFE +qIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=Qln2qphFzlLEQb+SQbJE9E/bmIRsneAkRPIjgB/WVNA=; b=sxZC+V7n/aPlQxrh9Bay/JateCU/R7z5I4L1mJCN39N5WN2CzjFmlSLfwlIE0QExJ2 QcNxvc5h3i11/WjA2HuJQwJfW9AAz/mfqUQQTZy+sftQNG7fymX0mvLbUTqsEZVrrvsj j/l9DMDjW9lMlPHfNh0LbFdfKEKLR2xAbXFcUANKWrOaLu0uMFjVzrw3OKkipEszrlbE kLkCifPHhCD8ncI/M0qirZB86iG134EQCu7PgJAR20GGAMERfZ8PmwiVR8i0lB4Tmvm+ uR5Cj03beg/l06KIM+i4/M5xI/tgdje9b+dxmb5iclR49hU6vo3T6wZ/tg0KA/jRaHKm Bu0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RfgROd1O; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si2662806edw.287.2020.09.09.20.46.04; Wed, 09 Sep 2020 20:46:27 -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=@gmail.com header.s=20161025 header.b=RfgROd1O; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728363AbgIJDpY (ORCPT + 99 others); Wed, 9 Sep 2020 23:45:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbgIJDpI (ORCPT ); Wed, 9 Sep 2020 23:45:08 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8029C061756; Wed, 9 Sep 2020 20:45:07 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id c196so3987176pfc.0; Wed, 09 Sep 2020 20:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Qln2qphFzlLEQb+SQbJE9E/bmIRsneAkRPIjgB/WVNA=; b=RfgROd1OSpMuN3g5IzZktvkh+BYMT4vk/w2Xo1Qhi7nHkfi+fk13JL/uRc3SibhEZx sefB3+FB3kyecPlunxr2ACOjiE9DoUBEyJMWSVPuA2m9bIzuE8tZC3RverMSKEC964GS /EyIvxG8JNrjKyh5JWoR+EUZofBINMfTwfmnaxmEy6MX4WVd0ESNBv8Ui2y3B8ovdwIe oD0I4fqrv1nkpyTnNQOY8sxPAEyqy9xuCaFBLRQoBAKXMfeaxb2EE93BjoR6N+UJhZ6d bSCeTa91uwSMxqBXl5bqbOjQiIcr24PrfpKWhVfJzWPkfCLNGsRKpYPjc8g3CkWZ7E/g BOow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Qln2qphFzlLEQb+SQbJE9E/bmIRsneAkRPIjgB/WVNA=; b=D2XH4iH9RQNpeaR0FGaA/ZUdMI5F4thsLMtuiL2gUIXnsI5r+jL15EwhJx02V9hc0g bihG1CSli4NoRiOu7dwH49RyHJHuf1yjK5B+Pi6meruSyfI50oGpAMqFzOmMgPUnnt38 ELmfXpivFOLG6ckS2JiZ9Yn2TRmpPSYNB0P6JRZoumZntQ0acJWJKn1X+R7kGvmx7zCc ArcaLwg0sgi5xt6tYQHwszDrBL+PIgdcozrB73yWOHqD93aWoC3kcH2blgYprt0JNG7n 7DII2AsWE2S9rxgwQ/IzGo86yuINx0CorHZiWyq2JoLAmAW+wGo7PV3MB0RcUgNcIBr2 dVow== X-Gm-Message-State: AOAM532JQZguj4yJETUofpf+QU1hxFYU+rvujEfkggdMCGry3n+gtBRo 5yT0RcOgG2a6yhJbRQFYiwQ+O2OwJXY= X-Received: by 2002:a62:5586:0:b029:13e:d13d:a12c with SMTP id j128-20020a6255860000b029013ed13da12cmr3419700pfb.20.1599709507192; Wed, 09 Sep 2020 20:45:07 -0700 (PDT) Received: from [192.168.1.101] (122-58-181-132-adsl.sparkbb.co.nz. [122.58.181.132]) by smtp.gmail.com with ESMTPSA id y13sm477789pgs.53.2020.09.09.20.45.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2020 20:45:06 -0700 (PDT) Subject: Re: [PATCH] ide/macide: Convert Mac IDE driver to platform driver To: Finn Thain , Geert Uytterhoeven References: <00ee44fe6ecdce1c783c3cc3b1b9a62b498dcdb2.1597736545.git.fthain@telegraphics.com.au> Cc: "David S. Miller" , Bartlomiej Zolnierkiewicz , Joshua Thompson , linux-m68k , Linux Kernel Mailing List , linux-ide@vger.kernel.org From: Michael Schmitz Message-ID: <3f57aae2-266f-be8e-928f-e5849cffcf26@gmail.com> Date: Thu, 10 Sep 2020 15:44:59 +1200 User-Agent: Mozilla/5.0 (X11; Linux ppc; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Finn, Am 10.09.2020 um 12:23 schrieb Finn Thain: >>> + return 0; >>> + >>> +release_mem: >>> + release_mem_region(mem->start, resource_size(mem)); >> >> Not needed, as you used devm_*() for allocation. >> > > OK, I'll remove this. I put it there after I looked at falconide.c and > wondered whether the automatic release would take place after both init > failure and exit (or just exit). I see now that pata_gayle.c does it > differently. pata_gayle.c has probably seen more testing (in the platform environment), so I'd go with what's done there. Cheers, Michael