From patchwork Tue Aug 20 12:34:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 171799 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4355045ily; Tue, 20 Aug 2019 05:34:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWCX0auQaQtOJD16NegCP/r4GhmFqhudTZG5ba8xw5CX7tXk18bCY0oHxwuxhC3rvDY5u+ X-Received: by 2002:aa7:8edd:: with SMTP id b29mr30587938pfr.173.1566304476267; Tue, 20 Aug 2019 05:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566304476; cv=none; d=google.com; s=arc-20160816; b=TOzbSD8vXX13vdphy6CUnouefUIPWO0ouRw7e0s/gkG1GNuWaK+Fk5pC+Rk+C9Ucsh Hyy2XeLQU9hdk1XE5+/L1VXYXr+xU9cio9rfgpsy4Dl6h7J+X1FglP1y35HzltIU9a4J fiRGX9XoVF7XRwfpmlXAQaYLa9X+G+fKxBXiyxRFYy7H4eV0KlZbmfayyZXSHs9cRuTx wFrqE7yBnN8uiop6r2ki8fJlevXEXdpo9jjWGYLoe7nCWywVz1RYgihKwC+son59xRAw qtI7X6yUkqXft32uMLPNwJLCBlOvz8JYbQzMHsGGyvD1PREoA7GDzSPT1X9i1KYfI361 uhQQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=C4Mb2956O3FRxXwLE7go2npN/BtpK8pSn0FcezT5G7k=; b=S+4G0di1WyoLoV5D+U2mZ6VUHsfm4JiZuCK7N1y04/UsvEDKGbMZ3qGe74ARepwxsy O1MPfAsgY6jBBRQW6L4/5tpu0h+JrX2gfSLzrGkmHjZnAM4gko1ivEPobvXTc3MwymB6 qrd3HxJXn7kas/Lsu+NvNhnGfBst3HP7+mRlke+5tFpw591Cttjda1aI3n9EL9Ku28/5 44kVsaNVCmPHk6L4i5ZCSVNUrJ7kydDX4zyvVhTXOd2/M0HJt5RpWsXsMnmrbHwR1Zh/ 2u4jW4Wxw8IwGdp0aFul7P/fktEBxmCjp3GY9RzVpxQkIttEW+sHmvJiklwfjDa+1fyZ 77wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QX2ousUi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si12909982pfb.122.2019.08.20.05.34.35; Tue, 20 Aug 2019 05:34:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QX2ousUi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730013AbfHTMee (ORCPT + 28 others); Tue, 20 Aug 2019 08:34:34 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44014 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730000AbfHTMed (ORCPT ); Tue, 20 Aug 2019 08:34:33 -0400 Received: by mail-wr1-f66.google.com with SMTP id y8so12205666wrn.10 for ; Tue, 20 Aug 2019 05:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=C4Mb2956O3FRxXwLE7go2npN/BtpK8pSn0FcezT5G7k=; b=QX2ousUiVBfSy/6wp/ndiWEdieYpT86MhekZPf558vtyY6ounj3GNb8xDtX9fTyjQ+ H/6hrMlgDpF8KLQyFos/ukJ65U/LNDR7fJnxuDhLDn1bGgRO8MXmO0eK33ILYpduu0zw PH7iRrywrKqO32ZGY/nGOPR5JhMKqUlQTJMaTqoY80etoh8RIpC9EP8D/A7O5miCYyfo 7+e98l/N4Aza0s8osWdP+wb3iG/Bbfm/OJWyWCMWTn12NuvnNrrKnQaWhTmxYi8IAdak obVglZAWVmeNpHBrzeIHVtmM6+SoypHInqmkKexdMhfmznhWEdkeASFDSPBPeMvgtkhJ 6CCA== 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:mime-version :content-transfer-encoding; bh=C4Mb2956O3FRxXwLE7go2npN/BtpK8pSn0FcezT5G7k=; b=K64sX+VVyNUn/YGmIY9t75YoX/axBMHGrUPA54bbB1cSk8B5R/Eoxh8b8P9NpGcdU6 ucxnzda6j+DWzMt2u8lOYYJJlyiNgygybx+XpeGk4FI9vZ+aikmn9/u8gfatc0vYoYqu hGLc0hCY6R8STOiWAj9kvMrEh/oiOncS82wyofjeuzUgq/KxgMrzIIiUShr71xqbj5PM IL4jH06s2gv/DTEbhFUFBj9bdbA8mQXdDZ+3wnwW7gXG9i3lDZrKMYEGGfXny4d+YFfm ODBVWYTmc0yTm0vtSmpSGzUs37bIKveoPG5JiSehQwjwWYxDp+U1UXfyY+VZ4kCb8oPz Xm0w== X-Gm-Message-State: APjAAAVhw7iLUQnIt+pfzz71Rd372X7z7dfTbix8i5qVNNSsF3itGP2D mZtyZjXZyyPDqAVG0rA0TZ6fWw== X-Received: by 2002:adf:a2cd:: with SMTP id t13mr31996957wra.251.1566304470874; Tue, 20 Aug 2019 05:34:30 -0700 (PDT) Received: from starbuck.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 39sm59456442wrc.45.2019.08.20.05.34.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 05:34:30 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood Cc: Jerome Brunet , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, Kevin Hilman Subject: [PATCH] ASoC: meson: axg-tdm-formatter: free reset on device removal Date: Tue, 20 Aug 2019 14:34:13 +0200 Message-Id: <20190820123413.22249-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the devm variant to get the formatter reset so it is properly freed on device removal Fixes: 751bd5db5260 ("ASoC: meson: axg-tdm-formatter: add reset") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdm-formatter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/sound/soc/meson/axg-tdm-formatter.c b/sound/soc/meson/axg-tdm-formatter.c index 21c735afab35..358c8c0d861c 100644 --- a/sound/soc/meson/axg-tdm-formatter.c +++ b/sound/soc/meson/axg-tdm-formatter.c @@ -325,7 +325,7 @@ int axg_tdm_formatter_probe(struct platform_device *pdev) } /* Formatter dedicated reset line */ - formatter->reset = reset_control_get_optional_exclusive(dev, NULL); + formatter->reset = devm_reset_control_get_optional_exclusive(dev, NULL); if (IS_ERR(formatter->reset)) { ret = PTR_ERR(formatter->reset); if (ret != -EPROBE_DEFER)