From patchwork Thu Apr 23 13:46:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 47461 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 327DE2121F for ; Thu, 23 Apr 2015 13:52:37 +0000 (UTC) Received: by layy10 with SMTP id y10sf4512706lay.0 for ; Thu, 23 Apr 2015 06:52:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=tp+DKQMQDetyCsYrqBaHqpSYwb/BIgmijJxkhhpWgHU=; b=DqUtBKBcZXE85HzH11sq3GvC5DOYRHqe1+DmEG1XXuBFsmRuqhB683M2bHDbfzg3Lg 19sH8PPqF8qmxLZ0WTrp6CMQCQ1mh9VPvp56kK/VByTsi6e9RZ/B9FxZsAQxNClJH71+ 8qDl5zHA3xetuOfSuxx6Wr7Zdzhj+9Z8nCeFXev007pbi33gEIOMIybrtO9VFf24tJwA qAN9yp4MCUMXg3gk0pncr6DXjApd9vj26JzljDAnTtf2oxqWxFYhOSEnEyljLXzCNAF4 wUTtDnhaR3vT8aPfOWoV3Ki2H923BkbiEKvpvb6dnZFBYXWbpWfMACrBBkGeTxesF9P9 podA== X-Gm-Message-State: ALoCoQm6Ej0f36Pl0Brkswi4dyeCi4qzoA9sX9iwGfFRM7ZH+XAcCpH6dac4hD7oEEkA088abBKm X-Received: by 10.194.249.1 with SMTP id yq1mr1475157wjc.2.1429797156149; Thu, 23 Apr 2015 06:52:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.42 with SMTP id cj10ls341404lad.51.gmail; Thu, 23 Apr 2015 06:52:36 -0700 (PDT) X-Received: by 10.153.4.43 with SMTP id cb11mr2615462lad.122.1429797155981; Thu, 23 Apr 2015 06:52:35 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id eq9si6016401lac.131.2015.04.23.06.52.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2015 06:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbuc2 with SMTP id uc2so13681433lbb.2 for ; Thu, 23 Apr 2015 06:52:35 -0700 (PDT) X-Received: by 10.112.222.133 with SMTP id qm5mr2576167lbc.86.1429797155859; Thu, 23 Apr 2015 06:52:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp587016lbt; Thu, 23 Apr 2015 06:52:35 -0700 (PDT) X-Received: by 10.70.35.6 with SMTP id d6mr5441414pdj.166.1429797147398; Thu, 23 Apr 2015 06:52:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rl17si12617193pab.93.2015.04.23.06.52.26; Thu, 23 Apr 2015 06:52:27 -0700 (PDT) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934406AbbDWNwZ (ORCPT + 11 others); Thu, 23 Apr 2015 09:52:25 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33543 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934336AbbDWNwH (ORCPT ); Thu, 23 Apr 2015 09:52:07 -0400 Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 587961409C8; Thu, 23 Apr 2015 13:52:07 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id 469881409F0; Thu, 23 Apr 2015 13:52:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-caf-smtp.dmz.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Received: from blr-ubuntu-34.ap.qualcomm.com (unknown [202.46.23.61]) (using TLSv1.1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 31F9A1409C9; Thu, 23 Apr 2015 13:52:03 +0000 (UTC) From: Rajendra Nayak To: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Cc: sboyd@codeaurora.org, srinivas.kandagatla@linaro.org, nrajan@codeaurora.org, lina.iyer@linaro.org Subject: [RFC 6/7] clk: qcom: gcc-msm8960: add child devices support. Date: Thu, 23 Apr 2015 19:16:12 +0530 Message-Id: <1429796773-7151-7-git-send-email-rnayak@codeaurora.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1429796773-7151-1-git-send-email-rnayak@codeaurora.org> References: <1429796773-7151-1-git-send-email-rnayak@codeaurora.org> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Srinivas Kandagatla This patch adds support to add child devices to gcc as some of the registers mapped by gcc are used by things like thermal sensors. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/gcc-msm8960.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-msm8960.c b/drivers/clk/qcom/gcc-msm8960.c index eb6a4f9..2c80d03 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 @@ -3520,7 +3521,8 @@ 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)