From patchwork Thu Sep 12 13:26:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 173703 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp2127575ilq; Thu, 12 Sep 2019 06:26:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhSqlHnAq4ph6Kgld/m+Irp+HcdOyod5Cog5REGbBElqtwG9Fi487f3qgGWtbPnpF677k+ X-Received: by 2002:a05:6402:286:: with SMTP id l6mr42011939edv.111.1568294789790; Thu, 12 Sep 2019 06:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568294789; cv=none; d=google.com; s=arc-20160816; b=wESviVChJeauPWpq2+9bKBhYMIh5EYEenNWRO5ZfUQK2cSL2l2F7cLxj36S7gz19xK Jxk+borJ2RXM+J5Q0rCAhZpM4Gbt6KIM6Ce1Q9LGLAXx26h2lVlv90XR78qD6KR/4156 4dJvtZxmToCZ8UT5l1yU2bm4vntFm1aN7mFXyP6P7l/nb1ikLbsmTkOcM5qPbsgUnoZo mb0tt0t5HZAuJ8NDs223sevBs+e0BD7YAmI8WIofQdkwryNCTskgLSGY9Pee5oxStQNw YAKxaY0mghL0k1jpzctVQEIbqWYQ4+9mG9k382H4hQmwCebYrQ3UnLFkVe5XKWhZaSWm 1vjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ZhhtgfHz1PpryANYuepNGwQFWlONDXmjaSxUGLbbF0g=; b=J3q8PHtJGhxTBOxGl3GxJiy9siNnmk08fSHb/GnptMGkOW9ck3i8PBQm7hkbKgETcb yXop7rrEXKK8BmYi0U4z8UV7viuQFo0oeRzNcHQUCjyCKCIwYDGHUu+wxL0+2fNQg8Fx LYp7L4Q7bS/p9iAz3jA5e9EBWi7H2FaoeAs5BAPnCiycsejwFSdXPnhfXt6lYQcxAkun dPs6jxQFfO/X+8G2RDgzLqrhZGWzejP2IENrMMWBOhgbiv9D3m4V7VXN+Zdpacj/D94S UV7sYW6DtABXXLlsFucarVHOvhKAHArzUQ7A2rFy+9hPk2A/OGhcRkLhnJi8gdXB37pt MbdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XxLUX4Yt; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si12814304ejz.384.2019.09.12.06.26.29; Thu, 12 Sep 2019 06:26:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XxLUX4Yt; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732093AbfILN02 (ORCPT + 5 others); Thu, 12 Sep 2019 09:26:28 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38344 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732098AbfILN02 (ORCPT ); Thu, 12 Sep 2019 09:26:28 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8CDQLB7021179; Thu, 12 Sep 2019 08:26:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568294781; bh=ZhhtgfHz1PpryANYuepNGwQFWlONDXmjaSxUGLbbF0g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XxLUX4Yteuu2XXr6dA3aF5yRzFMY/r5k4y1Cvwcisk7dvn1rs2zxqkAJf094+UqUR VyYeH6wQ3cLiCjoOIu7eaK8noT9nlXSsvHl9KF5Y13hJ5I3Dgfx2HEaBHIeYyY8rBa x7mE12ul4RmeQu6rSSpg+fmCfSwcqe78xAO65xZw= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8CDQLDe070947; Thu, 12 Sep 2019 08:26:21 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 12 Sep 2019 08:26:19 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 12 Sep 2019 08:26:19 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8CDQFvQ130575; Thu, 12 Sep 2019 08:26:18 -0500 From: Tero Kristo To: , , , CC: , Subject: [PATCHv3 01/10] clk: ti: clkctrl: fix setting up clkctrl clocks Date: Thu, 12 Sep 2019 16:26:04 +0300 Message-ID: <20190912132613.28093-2-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912132613.28093-1-t-kristo@ti.com> References: <20190912132613.28093-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Apply the proper register function for clkctrl clocks, so they get registered under the clk_hw_omap list also. This allows checking their type runtime. Signed-off-by: Tero Kristo --- drivers/clk/ti/clkctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/clk/ti/clkctrl.c b/drivers/clk/ti/clkctrl.c index 975995eea15c..a914df2e9e1b 100644 --- a/drivers/clk/ti/clkctrl.c +++ b/drivers/clk/ti/clkctrl.c @@ -622,7 +622,7 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node) init.ops = &omap4_clkctrl_clk_ops; hw->hw.init = &init; - clk = ti_clk_register(NULL, &hw->hw, init.name); + clk = ti_clk_register_omap_hw(NULL, &hw->hw, init.name); if (IS_ERR_OR_NULL(clk)) goto cleanup;