Received: by 10.213.65.68 with SMTP id h4csp165579imn; Mon, 19 Mar 2018 23:41:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELvq3RXBfdtyn4WpbHRAKhGwIjdm4LEYhZpPKxFJXnSPjLwHAZa7RtJW+E2++NIBDnU3iw0v X-Received: by 2002:a17:902:b683:: with SMTP id c3-v6mr15033117pls.154.1521528077890; Mon, 19 Mar 2018 23:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521528077; cv=none; d=google.com; s=arc-20160816; b=y2qJV/fZuCTRUFC0hDgRUJqOc3GxTN6d+NrNqpkc3R/p1betj/fBZWaiLJQqfixwvw 4DxJNJLWr+T4iF2dLLH8WP+6b1wt27BhcPVvKO3GAEfcGQKQpi343GI4oYilrKTTLQp4 Bs3I8xf5oS4er+uMnWvOnxyCjdF5Ed4aidkuZjpDj/iIIZGKieJBm20cvKlATtKFvV1+ SlGsXDd8hecHi072fGyDJ4y68RXnpicUZHlvbdGaIsosq/qQslwW/yuVwpBWnydw7U+O x8yZdTZTrbyYq2Ih6MChGsFxIqa5ubPDTBQFRrDVlJTqZlSo3clk8H9+BbFqIaavkAj/ rRSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=De99UjSYjLuG9ffFjArdg5rkEV03Eq6snhigulbY6Ho=; b=JYBQ00URFJwfFPLjSXURJFXzU9/DZAu5TGf6KOxiE6zD+frEIdXp3kC5rnouaro3se zKPz9/LiBM0uPzvKtqjrbQM9ZW0WUqqMH2eagVwN4vewjC59eWNu+97xt8AwerCEKAAg Azg1nG+BKp7eC5mtqeL8r+aSmS8yG2CqU6apF8ctgNNxM7aM2prbXIwd+DCkhAeOkAFq Td9FZ96Nxz5A5O09f9+LH3J4FZfTn1gX3+H6oZjhrxVwQDunOUogBpiUD8qJYTRoMwJT Ly/YMTe3dP+3xdTVLG51Th1ciI2yAFxJ9NFjGO/HaulyaNm8X+8IaMt2JlzK6CmButAF KJiw== 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 i23-v6si264139pll.251.2018.03.19.23.41.04; Mon, 19 Mar 2018 23:41:17 -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 S1752140AbeCTGi7 (ORCPT + 99 others); Tue, 20 Mar 2018 02:38:59 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41794 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751771AbeCTGi6 (ORCPT ); Tue, 20 Mar 2018 02:38:58 -0400 X-UUID: e246b5e27bf44fc39d0dfc9068289a14-20180320 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1063197300; Tue, 20 Mar 2018 14:38:54 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 20 Mar 2018 14:38:52 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 20 Mar 2018 14:38:52 +0800 Message-ID: <1521527932.21199.4.camel@mtkswgap22> Subject: Re: [PATCH v4 3/6] clk: mediatek: add audsys support for MT2701 From: Ryder Lee To: Stephen Boyd CC: Rob Herring , Stephen Boyd , Mark Brown , Lee Jones , "Matthias Brugger" , , , , , , "Garlic Tseng" Date: Tue, 20 Mar 2018 14:38:52 +0800 In-Reply-To: <152149148431.242365.4625152577833480987@swboyd.mtv.corp.google.com> References: <152149148431.242365.4625152577833480987@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23730.005 X-TM-AS-Result: No-17.745800-8.000000-10 X-TMASE-MatchedRID: wQVy7q402w34OiVTWoD8RCa1MaKuob8PC/ExpXrHizxGqWrQwZFUCIe2 B1kDoHWrwX0f1lPumDhPaUktJ/9D+psYdIGP6PlZXP5rFAucBUExXH/dlhvLv4KwF4K/wIz948f E6PIFskBl/p5QlddQ8R9l1zPMOb+6TX7PJ/OU3vKDGx/OQ1GV8t0H8LFZNFG7JQhrLH5KSJ0= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--17.745800-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23730.005 X-TMASE-POSTMAN: 2-d; X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-03-19 at 13:31 -0700, Stephen Boyd wrote: > Quoting Ryder Lee (2018-03-06 01:09:28) > > + > > +static const struct of_device_id of_match_clk_mt2701_aud[] = { > > + { .compatible = "mediatek,mt2701-audsys", }, > > + {} > > +}; > > + > > +static int clk_mt2701_aud_probe(struct platform_device *pdev) > > +{ > > + struct clk_onecell_data *clk_data; > > + struct device_node *node = pdev->dev.of_node; > > + int r; > > + > > + clk_data = mtk_alloc_clk_data(CLK_AUD_NR); > > + > > + mtk_clk_register_gates(node, audio_clks, ARRAY_SIZE(audio_clks), > > + clk_data); > > + > > + r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); > > + if (r) { > > + dev_err(&pdev->dev, > > + "could not register clock provider: %s: %d\n", > > + pdev->name, r); > > + > > + return r; > > + } > > This fails to remove the clk provider when devm_of_platform_populate() > returns an error. > > > + > > + return devm_of_platform_populate(&pdev->dev); > > +} I've sent a new one to fix it. Thanks