From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk. [2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by gmr-mx.google.com with ESMTPS id e72si786741wma.0.2017.03.26.07.55.06 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 26 Mar 2017 07:55:07 -0700 (PDT) Date: Sun, 26 Mar 2017 15:54:09 +0100 From: Russell King - ARM Linux To: Leo Yan Cc: Dmitry Torokhov , Alessandro Zummo , Alexandre Belloni , Linus Walleij , Baptiste Reynal , Alex Williamson , Jaroslav Kysela , Takashi Iwai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, alsa-devel@alsa-project.org Subject: [rtc-linux] Re: [PATCH 5/5] ALSA: AACI: Convert to use devm_ioremap_resource() Message-ID: <20170326145409.GP7909@n2100.armlinux.org.uk> References: <1490539314-9681-1-git-send-email-leo.yan@linaro.org> <1490539314-9681-6-git-send-email-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <1490539314-9681-6-git-send-email-leo.yan@linaro.org> Sender: Russell King - ARM Linux Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , On Sun, Mar 26, 2017 at 10:41:54PM +0800, Leo Yan wrote: > Convert to use devm_ioremap_resource() in probe function, otherwise it's > missed to unremap this region if probe failed or rmmod module. Again, wrong - just because there's nothing in the cleanup paths does not mean it doesn't clean up. static void aaci_free_card(struct snd_card *card) { struct aaci *aaci = card->private_data; iounmap(aaci->base); } This unmaps the mapping you claim it fails to do so. So, your patch actually _creates_ bugs that were not there before. NAK. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.