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: 10745195 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 626E61399 for ; Sun, 30 Dec 2018 19:48:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A88F28ABB for ; Sun, 30 Dec 2018 19:48:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D24728AD7; Sun, 30 Dec 2018 19:48:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D42A528ABB for ; Sun, 30 Dec 2018 19:48:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726454AbeL3TsQ (ORCPT ); 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-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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; }