From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hiroshi Doyu Subject: Re: [PATCH] iommu/tegra: gart: cleanup devm_* functions usage Date: Tue, 24 Sep 2013 07:24:01 +0300 Message-ID: <20130924072401.f1dc70bc9834f1acaa8705bf@nvidia.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Wei Yongjun , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Joerg Roedel Cc: "swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org" , "gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org" , "rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org" , "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org" , "grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org" , "Varun.Sethi-KZfg59tc24xl57MIdRCFDg@public.gmane.org" List-Id: linux-tegra@vger.kernel.org Hi Wei, On Tue, 24 Sep 2013 05:40:24 +0200 Wei Yongjun wrote: > From: Wei Yongjun > > The devm_[kzalloc|ioremap] functions allocates data that are released > when a driver detaches. Thus, there is no reason to explicitly call > devm_[kfree|iounmap] in probe or remove functions. > > Signed-off-by: Wei Yongjun Acked-by: Hiroshi Doyu