From patchwork Sun Mar 26 14:41:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 96010 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp853251qgd; Sun, 26 Mar 2017 07:42:36 -0700 (PDT) X-Received: by 10.98.194.88 with SMTP id l85mr19352155pfg.55.1490539355959; Sun, 26 Mar 2017 07:42:35 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w190si9604700pgd.276.2017.03.26.07.42.35; Sun, 26 Mar 2017 07:42:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751394AbdCZOm2 (ORCPT + 1 other); Sun, 26 Mar 2017 10:42:28 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:35236 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332AbdCZOm1 (ORCPT ); Sun, 26 Mar 2017 10:42:27 -0400 Received: by mail-wr0-f179.google.com with SMTP id u1so22383069wra.2 for ; Sun, 26 Mar 2017 07:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=z0CBisFgmf0ohTpr9atesurhYDl1tJNXeRFiRHoKl74=; b=Sr2A3WCJWq0S8obs1mHXoNOpZ67+RkLFFZlmrp2pE7kuBsYAqF/dhiVIhI3+0spsnu CQL0atxPhRReVZa8yQhPduOIZtmWY6pg2zFfnB/Ev8aByOkQHO8uVgHY753fJiCj/8u3 Q9fV0VWe5385/RLYIMzZ9lvvt8wAzZkYuQ6K8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=z0CBisFgmf0ohTpr9atesurhYDl1tJNXeRFiRHoKl74=; b=W7WHKqwVLXkUJ2f1EXLyMEAIk3FGnA0RcKaPkTUkYbEQMDC7roJoVzaOt+NMcATpXj JEeVZNkJEnTbC1msVGtcsHtn0S5+zVljc3k/0kpEEkxyGs6DxgaCQEVE9uulJi6mTsTP M2cclnRIQ9iMi4ssduGiCyvUvo+BdERM7NxZ6ZkUJiiE/tgfB2m1PfmKlUzfQkOn9vWA Z6yNrt1VIardRNz3ZvVj2qBE8EhTKINySgSkLK/sFeK6q/pKAQbjExnZdlHfUB/MlswP BQ5hyo+BHlFZz4IEk7CzpRhkmr/ph8AcLENpXRJR4ivZUUG0HIJrML1Ci+7g/eju4NEA YlkA== X-Gm-Message-State: AFeK/H08lLpkjhs7EDGzhbqek670DGSVwFvU1hCUt5MWvCTLKgTreP+jrbv2WQtfxP/0r2xY X-Received: by 10.28.226.4 with SMTP id z4mr5690968wmg.135.1490539345502; Sun, 26 Mar 2017 07:42:25 -0700 (PDT) Received: from localhost.localdomain (li1529-187.members.linode.com. [139.162.244.187]) by smtp.gmail.com with ESMTPSA id l90sm10619516wmi.25.2017.03.26.07.42.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Mar 2017 07:42:24 -0700 (PDT) From: Leo Yan To: Russell King , 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 Cc: Leo Yan Subject: [PATCH 0/5] Convert to use devm_*() for amba attached modules Date: Sun, 26 Mar 2017 22:41:49 +0800 Message-Id: <1490539314-9681-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org When review device driver modules which attach to amba bus, found several modules are not using devm_*() apis to manage resource. As result, some drivers have memory leakage or missing iomem unmapping when rmmod module. And the code has many "goto" tags to handle different failures. So this patch series is to convert to use devm_*() for moudules which are attached to amba bus to manage resource and get more robust and neat code. Patch 0003 "drivers/rtc/rtc-pl031.c: Convert to use devm_*()" has been verified on 96boards Hikey. Other patches can pass building but have not really tested on hardware. Leo Yan (5): Input: ambakmi - Convert to use devm_*() drivers/rtc/rtc-pl030.c: Convert to use devm_*() drivers/rtc/rtc-pl031.c: Convert to use devm_*() vfio: platform: Convert to use devm_*() ALSA: AACI: Convert to use devm_ioremap_resource() drivers/input/serio/ambakmi.c | 44 +++++++---------------------- drivers/rtc/rtc-pl030.c | 49 ++++++++------------------------ drivers/rtc/rtc-pl031.c | 59 ++++++++++----------------------------- drivers/vfio/platform/vfio_amba.c | 25 ++++++----------- sound/arm/aaci.c | 21 ++++---------- 5 files changed, 51 insertions(+), 147 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Linus Walleij