From patchwork Wed Jul 8 09:47:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 50864 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8C2A0213FD for ; Wed, 8 Jul 2015 09:48:50 +0000 (UTC) Received: by lagx9 with SMTP id x9sf65069286lag.2 for ; Wed, 08 Jul 2015 02:48:49 -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=FrftyyEUvRxe4P2isrtspXdXTC137S08//D1BluqMZUIYIjk0CS64xYB14EDI8lQx1 b3lJFvZB53qHCxh6LonlcaylwcepDbLhCDVlQmwgliMdmxOgWvpL5/oGRf+TgaC8xt4+ 9BSkU4W72L91sYCDYKA/nE3mb7sXCuYvM2TrNRsluyQp1WLS7o/Vu8q78BENEwXWVcVA +N4wRHe2A6i41ttfC5af1A3nY7F8cWUMCOdQbksfX3MVmWh4a4q2/fqmVTGFOdvwo0QO 0OjIqMhD5H6hqKCJdxKdkn49cAnHjv1NoXRkt7rSltFoX40TKZDrlpHv1vMcVB772jN+ K1YQ== X-Gm-Message-State: ALoCoQk6T56vUesoY8hgfxkHYgqhKZMcCEnt6rTpKL712uAPAVa6JyglO2rz2twOmV62FlWxljZp X-Received: by 10.152.22.163 with SMTP id e3mr4410451laf.6.1436348929551; Wed, 08 Jul 2015 02:48:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.73 with SMTP id j9ls177537lag.73.gmail; Wed, 08 Jul 2015 02:48:49 -0700 (PDT) X-Received: by 10.112.130.199 with SMTP id og7mr8294450lbb.107.1436348929432; Wed, 08 Jul 2015 02:48:49 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id zo2si1490420lbb.103.2015.07.08.02.48.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2015 02:48:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbbpo10 with SMTP id po10so52643629lbb.3 for ; Wed, 08 Jul 2015 02:48:49 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr8455048lay.72.1436348929148; Wed, 08 Jul 2015 02:48:49 -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.108.230 with SMTP id hn6csp2960291lbb; Wed, 8 Jul 2015 02:48:48 -0700 (PDT) X-Received: by 10.66.218.42 with SMTP id pd10mr18864279pac.106.1436348916961; Wed, 08 Jul 2015 02:48:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id py4si3210074pbb.147.2015.07.08.02.48.36; Wed, 08 Jul 2015 02:48:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758184AbbGHJsf (ORCPT + 11 others); Wed, 8 Jul 2015 05:48:35 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54908 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758104AbbGHJse (ORCPT ); Wed, 8 Jul 2015 05:48:34 -0400 Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id C1FFC140F1B; Wed, 8 Jul 2015 09:48:33 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id B3C85140F28; Wed, 8 Jul 2015 09:48:33 +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 9D6D6140F23; Wed, 8 Jul 2015 09:48:30 +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: [PATCH 5/9] clk: qcom: gcc-msm8960: add child devices support. Date: Wed, 8 Jul 2015 15:17:14 +0530 Message-Id: <1436348838-22671-6-git-send-email-rnayak@codeaurora.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1436348838-22671-1-git-send-email-rnayak@codeaurora.org> References: <1436348838-22671-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.182 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)