From patchwork Fri Jan 30 09:51:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 5748411 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4CAA49F38B for ; Fri, 30 Jan 2015 09:52:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7BE392025B for ; Fri, 30 Jan 2015 09:52:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA0DF2021B for ; Fri, 30 Jan 2015 09:52:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760021AbbA3Jvg (ORCPT ); Fri, 30 Jan 2015 04:51:36 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:40538 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758794AbbA3Jvc (ORCPT ); Fri, 30 Jan 2015 04:51:32 -0500 Received: by mail-wg0-f52.google.com with SMTP id y19so25840055wgg.11 for ; Fri, 30 Jan 2015 01:51:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=J3k+pQQDZnFJGT0ZEg3Gxiyrh+dUX4BvdlqoKmB4src=; b=lTcZDawzULnOUfX1BCgVT0+21/4TFxmNZk1GWO5BssZ4WpwbNjHDjwpbIEA8n6I89z z5V2yXcxRtozrvriXW2fknHtKxb3Y53T2tpD3egBWKj3jTlJxxuEu4TMYFiJfNjPaEtE iGSRWzP15OTfQSNUDR6Yg3d1e2bG6TjxL40/KoeRnuVKPMggY7ml2+o4dxH2r6cjPCQ+ 2W9Ol+s2HMUM+GXX4IoJCxo5oDX45BYhGKIqKC4poi3mpyjSaE13Bm2aRPCTv+noh7/g baOVDiragl2KVFtw5XDVRgYSZqpgP2WzF8mdn6uQv/KfKQ87NZOZRezx/JF7xoNH3pQX 7Rlw== X-Gm-Message-State: ALoCoQl7DOVx7ZnSkl6PFEte+FmAlkstGnTiOM78/vg4s4zKG5crGwBcrbQWAtLI/Nyc+LjS/S4Y X-Received: by 10.180.182.8 with SMTP id ea8mr3123542wic.48.1422611491202; Fri, 30 Jan 2015 01:51:31 -0800 (PST) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-98-209-190.as13285.net. [2.98.209.190]) by mx.google.com with ESMTPSA id uo6sm14134787wjc.49.2015.01.30.01.51.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 01:51:30 -0800 (PST) From: Srinivas Kandagatla To: Mike Turquette , Stephen Boyd Cc: Rob Herring , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, edubezval@gmail.com, nrajan@codeaurora.com, Srinivas Kandagatla Subject: [PATCH 1/2] clk: qcom: gcc-msm8960: add child devices support. Date: Fri, 30 Jan 2015 09:51:27 +0000 Message-Id: <1422611487-15259-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1422611459-15217-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1422611459-15217-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds support to add child devices to gcc as some of the registers mapped by gcc are used by drivers like thermal sensors. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/gcc-msm8960.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-msm8960.c b/drivers/clk/qcom/gcc-msm8960.c index 0cd3e26..2315b64 100644 --- a/drivers/clk/qcom/gcc-msm8960.c +++ b/drivers/clk/qcom/gcc-msm8960.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -3677,12 +3678,16 @@ static int gcc_msm8960_probe(struct platform_device *pdev) if (IS_ERR(clk)) return PTR_ERR(clk); - return qcom_cc_probe(pdev, match->data); + qcom_cc_probe(pdev, match->data); + + return of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev); } static int gcc_msm8960_remove(struct platform_device *pdev) { qcom_cc_remove(pdev); + of_platform_depopulate(&pdev->dev); + return 0; }