Received: by 10.213.65.68 with SMTP id h4csp1798578imn; Mon, 19 Mar 2018 13:34:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELsTJ/k5oXgdFqH1hHO8JUVSbgI4m6HjxFU9D0DKY4UoBXUwp2KVtG6Zhw5cLJfAeaU/TyWk X-Received: by 10.99.152.10 with SMTP id q10mr10156232pgd.62.1521491659985; Mon, 19 Mar 2018 13:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521491659; cv=none; d=google.com; s=arc-20160816; b=IYPHQIbYZfklcM+xB52DQspMPJ7CEQxeXY1FmlJGISnFt1X2QTDMyqbYbNSn/NyOI0 GzDbU+5BZEC2w06aNpEsjgGCGBb7FYDDG13kDuIERcYOnW0f5RiG46OvcAKNlmIkFxPj o0Fhap9k1KUVQYy514n1fSXgEYBPpvts1xETViWHOCLYwiAfrj6nRJAdzpwtD9ISrbTz GUkR0fRvA5Ty34Y/958axo6TnOv/BRnpYpZIDnVBekcNsEYCxtghrq2M/S+raFTZRNiV R5A8aS9mSqSQYzuv2J8vBpDvWl8qfMza+A6WdNBIiuRZ1z8Oa0Tq0LSAGr+u6PwMj8+r FETw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dmarc-filter:arc-authentication-results; bh=f58PUO/vf5wGU9mvG26qb1hXuqxJvJIM2JmH5WdbVjc=; b=DAiTqq/guQyKxnRe1QskdjjvCVJtoVWUbfiAihEDVCOK0Uy0NBvmKjWgMOsHuyLvjP ErbD+irEqI68TYYZHmu3E9Eu5ISvBqHFYPufzFTo2pt7dqhyfImhj8IJVNAVL/ZY2kC7 vdVJX570aYiikj4rzAM4eOa90z6MAnXg6upWojd7klMh1k24MFjujwCR5USm1r9klDjd qcgmWfNKqFAiXZ4Q2j1QGUDBfk+4ahciTBwL9/f9+3xGX6PMW6fOprqIqK3OnhgYjEl4 jZ5t5uhcmiZupN70BFaR3iEbV7XErXiRB7XCQoAu6kdkjqaU6gRyyotrBQtAs60YFo4u 44QQ== 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 n19-v6si38634plp.582.2018.03.19.13.34.05; Mon, 19 Mar 2018 13:34:19 -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; 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 S1031575AbeCSUcH convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Mar 2018 16:32:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:36960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030696AbeCSUcA (ORCPT ); Mon, 19 Mar 2018 16:32:00 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1695A20838; Mon, 19 Mar 2018 20:32:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1695A20838 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sboyd@kernel.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Rob Herring , Ryder Lee , Stephen Boyd From: Stephen Boyd In-Reply-To: <3a3c198707a69297abc05d2a7fef97857e7fab5a.1520327262.git.ryder.lee@mediatek.com> Cc: devicetree@vger.kernel.org, Ryder Lee , Garlic Tseng , linux-kernel@vger.kernel.org, Mark Brown , linux-mediatek@lists.infradead.org, Matthias Brugger , Lee Jones , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <3a3c198707a69297abc05d2a7fef97857e7fab5a.1520327262.git.ryder.lee@mediatek.com> Message-ID: <152149151947.242365.12823569223681242175@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v4 2/6] clk: mediatek: add devm_of_platform_populate() for MT7622 audsys Date: Mon, 19 Mar 2018 13:31:59 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Ryder Lee (2018-03-06 01:09:27) > @@ -150,12 +151,15 @@ static int clk_mt7622_audiosys_init(struct platform_device *pdev) > clk_data); > > r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); > - if (r) > + if (r) { > dev_err(&pdev->dev, > "could not register clock provider: %s: %d\n", > pdev->name, r); > > - return r; > + return r; > + } > + > + return devm_of_platform_populate(&pdev->dev); And now we fail to remove the clk provider when this fails. > } > > static const struct of_device_id of_match_clk_mt7622_aud[] = { > -- > 1.9.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel