From patchwork Wed Oct 31 08:34:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 10662207 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 0CC5713BF for ; Wed, 31 Oct 2018 08:35:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E76612A317 for ; Wed, 31 Oct 2018 08:35:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D66F92A338; Wed, 31 Oct 2018 08:35:03 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 86C8C2A317 for ; Wed, 31 Oct 2018 08:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XOWnGMkNNfEczf7WOLTGam7sB/E2h5C0IZ3MLBy4y70=; b=Wwa4cjzGMn4rYh QMawVzVG9u6OsProO3bHPA6ftzvepaHW0bxPi4BMOFbv1AG8MY7J7JOtem94Akk4z5I8WEeobdK0E 0QVMUNhMw6xYQp2T4LjVnkxaIEGkkfLcoVaSF3uq9vCwV5aDySKK+/DwXxHVUm9vs2MH+eJwsxLex 5vPajKV0BoFfMM7Af/DP9dAV9age3RDZlN145Qx6XtpYoAjUbkueG6S6JtOWR69JOSIV1clye5XpS gJYlSvKIKEduPa9aJnQYBfA4+YtzVh+gCwj6iOdz2d0ne7sAx66N3r71C3Ij1GbqeRVR+3Mk0Hi/G 4F74yrHs2WSFLLoGsWXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHlxs-00085a-TZ; Wed, 31 Oct 2018 08:35:00 +0000 Received: from mail-lf1-f65.google.com ([209.85.167.65]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHlxq-00084m-4w for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 08:34:59 +0000 Received: by mail-lf1-f65.google.com with SMTP id d7-v6so10976103lfi.2 for ; Wed, 31 Oct 2018 01:34:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UWFrztTGBGBvTlJ4yv0DEf/05EQvWoHnl+hl24Atexs=; b=F/lKXJ/BDX9wTRv+0Gj7UTt3wo+IsnALk9z+J9GCE3gcQ6kBUbiztk+cEjHezqRMoy 0oQMnggaTpkxCqKC2/TUVuKqtV7jDL7M9gnxDrGt1hCdKj7Q7eIyyqPC/Vpy7/4ydOQA lmRhnN5JlizY92o+l/f3EcT29NDORFxqdT13JzBv5pQSlT0gFIavGW/hQtKikxb68ed5 WCYVvenKLV0pvaU2juJee6GC2Ug2ijo/i1fnU5TpWKelpyybRxzebFnh5fZ/zeplVo0W 9va8HU/7kOZmtZDpE9SSa5Oj1+ph6J30sxYQuBbQ5LfdPdGEQm/K2R3hpc2S1xU/Hm/d ZfLw== X-Gm-Message-State: AGRZ1gIY0YlZQoXwDYOx/izbCcQEZYhcop+jDND7rdQGG7XXtHpG0Wuh C0+1w9Tt7NT9+IlI5M2Dldg= X-Google-Smtp-Source: AJdET5ecHIjPyVjF1HMdEiS5Gtf76m4/ewMhfAoITPfJhfIAU8wIAlHcuEVc6E7fJAq4CmUdKsF69g== X-Received: by 2002:a19:d212:: with SMTP id j18-v6mr1193355lfg.44.1540974886563; Wed, 31 Oct 2018 01:34:46 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id r22-v6sm2780095ljh.77.2018.10.31.01.34.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Oct 2018 01:34:46 -0700 (PDT) Date: Wed, 31 Oct 2018 10:34:32 +0200 From: Matti Vaittinen To: Jonathan Corbet , Michael Turquette , Stephen Boyd , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Russell King , Andy Gross , David Brown , Kukjin Kim , Sylwester Nawrocki , Tomasz Figa , Andrey Smirnov , Sebastian Reichel , Guenter Roeck , Rob Herring , Matti Vaittinen , Huang Shijie , Akshu Agrawal , "Rafael J. Wysocki" , Daniel Kurtz , mazziesaccount@gmail.com Subject: [PATCH 8/8] clk: apcs-msm8916: simplify probe cleanup by using devm Message-ID: <0495e02e0a7e7afe5b16e606fd83ad928a3eed4d.1540970653.git.matti.vaittinen@fi.rohmeurope.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_013458_187868_F9B9BE97 X-CRM114-Status: GOOD ( 14.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, matti.vaittinen@fi.rohmeurope.com, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP use devm variant for of_provider registration. Signed-off-by: Matti Vaittinen --- drivers/clk/qcom/apcs-msm8916.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/apcs-msm8916.c b/drivers/clk/qcom/apcs-msm8916.c index b1cc8dbcd327..f4e0c136ab1a 100644 --- a/drivers/clk/qcom/apcs-msm8916.c +++ b/drivers/clk/qcom/apcs-msm8916.c @@ -96,8 +96,8 @@ static int qcom_apcs_msm8916_clk_probe(struct platform_device *pdev) goto err; } - ret = of_clk_add_hw_provider(parent->of_node, of_clk_hw_simple_get, - &a53cc->clkr.hw); + ret = devm_of_clk_add_parent_hw_provider(dev, of_clk_hw_simple_get, + &a53cc->clkr.hw); if (ret) { dev_err(dev, "failed to add clock provider: %d\n", ret); goto err; @@ -118,7 +118,6 @@ static int qcom_apcs_msm8916_clk_remove(struct platform_device *pdev) struct device *parent = pdev->dev.parent; clk_notifier_unregister(a53cc->pclk, &a53cc->clk_nb); - of_clk_del_provider(parent->of_node); return 0; }