From patchwork Sun Dec 30 19:47:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 154622 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp10250461ljp; Sun, 30 Dec 2018 11:48:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN5S7xsVGV+gES8Kj2t+Isbm4dKcIcMXOpczzce+hXqPm5jWKo8HXYar8i+epxy+5wkAKhsX X-Received: by 2002:a17:902:bf03:: with SMTP id bi3mr34977219plb.83.1546199298842; Sun, 30 Dec 2018 11:48:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546199298; cv=none; d=google.com; s=arc-20160816; b=cpYq+dLqSE4ETXUwnviaDnql9wUwi1TdOYjlZx9+YNhCtxGK/iBZly0L733hnGwQ1t D9b6IhH2a6jfiLdr+k8JJMTFWsx1rOERr3ILdWILaPDzTvE16shhHsseS7xTPee7gL0W RsJTVhEzd1eJ1eAnPLSFSyjb8T42OKxkhXIbSjq6LtbpM6RAO3pRTwsSmgCzZOvmG9Jz J2ogm5Sj51TDOXVCYZPeU52dLorRS6fBn8PugOB5BGewU99nLKW5Ll8jOoYTJJCaYUCI Gba8Qsz+ZeI4o6BSRhLjnMwQ5Ab0fmgu06bpS2vIUavpao0KszNa3hmk8JTJ+FzP2dVO h4GQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RScoX6Wt5dN32A7GPvnb4j5CYHLemo1WM32ccgpppt8=; b=Jy7oRReWtDzHnnyuZaq6L70gE98O6jTW+qjlSCBBsHpMCu9kFke8jkVWxq7xso4GIW lfuWtCQV7HCkMxDWYMevo8fa4UzVVLGLhs8541iPDz7EQxVDwQApjkyUOIAhIwCqKtsG U04/U5vIowQpJS3LUBN2diGFcghnDF6lfgvQRqsxgsp4J56Debo1ZcrO0ehv84op89DT 41NYI0XaeFJ182j3fF9agj9fvU0QRo3HuxApnvfXRq1v6hlaXutJ1lVgfso+///7CQ/f 2tyOjq/vz01roq7qqpMYzTQNRt01Tl+kEswzKROVG7CiudoFjtpvtl0Ur6drou6Wno3Y GrsA== ARC-Authentication-Results: i=1; mx.google.com; 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 w14si24043598plq.145.2018.12.30.11.48.18; Sun, 30 Dec 2018 11:48:18 -0800 (PST) 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; 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 S1726770AbeL3TsQ (ORCPT + 31 others); Sun, 30 Dec 2018 14:48:16 -0500 Received: from mx2.suse.de ([195.135.220.15]:39976 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726432AbeL3TsQ (ORCPT ); Sun, 30 Dec 2018 14:48:16 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 589BBAE1D; Sun, 30 Dec 2018 19:48:14 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-lpwan@lists.infradead.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Whitten , Ben Whitten , linux-clk@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH lora-next] net: lora: sx125x: Clean up clock provider Date: Sun, 30 Dec 2018 20:47:59 +0100 Message-Id: <20181230194759.12204-1-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <491d1a46-c112-1106-9f25-14149f0dcbd0@suse.de> References: <491d1a46-c112-1106-9f25-14149f0dcbd0@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_ variant to have the clock provider deleted again. Signed-off-by: Andreas Färber --- drivers/net/lora/sx125x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.4 diff --git a/drivers/net/lora/sx125x.c b/drivers/net/lora/sx125x.c index 2c48301a12ab..68d8afed48ba 100644 --- a/drivers/net/lora/sx125x.c +++ b/drivers/net/lora/sx125x.c @@ -161,7 +161,7 @@ static int sx125x_register_clock_provider(struct sx125x_priv *priv) dev_err(dev, "failed to register clkout\n"); return PTR_ERR(priv->clkout); } - ret = of_clk_add_hw_provider(dev->of_node, of_clk_hw_simple_get, + ret = devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, &priv->clkout_hw); return ret; }