Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3651332pxj; Tue, 15 Jun 2021 05:51:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnXXhP7+i3/xHDOkkdXEMDrShgrLurh9YnFWclbqxYDdsjO3vNbDGyETeyMyWY53uEkcsm X-Received: by 2002:a05:6602:160d:: with SMTP id x13mr12118263iow.88.1623761462489; Tue, 15 Jun 2021 05:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623761462; cv=none; d=google.com; s=arc-20160816; b=LWji1YnwGhP4mqSlvsws/vBT4uzOSoh8VNe1nN0LVFCCKXBjrnQ2HGvhyTogg5J0Am PqFp1Qc3T5rD1XapG38n83ctzfsbHGq9NTRMaVLVO9ZMl+JfW6pCTNwtE9548/5+Hexb MKhyoOrw88Wht3YIitQlDit6wLdmLfPdyC5WSePo6l2HZ+RHdTdnCB9dkKHRhun46fIk qenWFvqammD4WaCGTHQcOg8NsYISAwiX9O+1T/qBH9rotLdbFSXlJJ3Fat9ySl66pjEf c+GlNLud9u/NH2CEoczy+J8FegF5t1zgjBhW6tm6UgKnyQQVSoXkpHKyMkAv4J+b6uB9 cbEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gfaMzXeSNaWYPj9eCxrkc9+D+S6W5NIfoa4FlxHrWto=; b=LN0Yeo9AG4iRhyvScQ0HCChkuXFw/kIaGWHM4/EkBeddyZvnBNW9DBI4ZiRvgqHUqV 12MaDfijx5f+FGE/7uDpuKqgzFRru9Ou1dOjtUQVebAn62SvnpS/AFx3+XHcW5LRFc7V 4p9nzW+ug8Y300CIlkNFXygl22UPLeqJdwV4OZoO8BPQWUOKZwYvJG8KjRQUb0ESuiPc FGJhKBV/qH6CTASWesd5k3iA9HoiGAIp6bzoaxaY3bgjA88XBo+sQZqqWO8ipYffTVRV OJ4WicTUcI114BKxEj4eInJ54PP7M7KPiUIsDb8xMipWhWAGvmHPoKwwy8noBXJE6um3 gqbg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si19457307jat.51.2021.06.15.05.50.48; Tue, 15 Jun 2021 05:51:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230235AbhFOMuz (ORCPT + 99 others); Tue, 15 Jun 2021 08:50:55 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:7274 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbhFOMuw (ORCPT ); Tue, 15 Jun 2021 08:50:52 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4G47KY355fz1BMmJ; Tue, 15 Jun 2021 20:43:45 +0800 (CST) Received: from dggpeml500017.china.huawei.com (7.185.36.243) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 20:48:45 +0800 Received: from huawei.com (10.175.103.91) by dggpeml500017.china.huawei.com (7.185.36.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 20:48:44 +0800 From: Yang Yingliang To: , , CC: Subject: [PATCH -next v2 0/2] ARM: imx: free resources Date: Tue, 15 Jun 2021 20:52:37 +0800 Message-ID: <20210615125239.1348845-1-yangyingliang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500017.china.huawei.com (7.185.36.243) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mmdc_base need be unmapped and mmdc_ipg_clk need be disable and unprepared in remove and error path. v2: hold mmdc_base in structure and free the resources on error path. Yang Yingliang (2): ARM: imx: add missing iounmap() ARM: imx: add missing clk_disable_unprepare() arch/arm/mach-imx/mmdc.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) -- 2.25.1