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: 44030 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4611C2410D for ; Fri, 30 Jan 2015 09:51:49 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id l4sf28791167lbv.1 for ; Fri, 30 Jan 2015 01:51:44 -0800 (PST) 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=lPoDc9AgdY6u8j+mbs+zNuN4o+PiAXFtG0OszsN0MnM=; b=KB3OPhLAc7V2GaF/L1f5mplHmGxbzI7MyI1TEeQ5PjfVJe+ZC65l3TrmQPpy9TG3QT xHunXere49qNppkDt7lx7KUFikSlCh/B45ereHwGHFnyFnDNMRV8K+8IBw+T156gqMEd qHgo74VCadcQhDQG30t4DAajCgmnhjokZUlkldEsyRhwjJkpchDCFh7AxpqY5ID8nNkZ t4ETqbQiWgVkAU41WJwi9fe28vExPxg7xTCaEOakdWi2I6BVhUEs+FiaUDq8Cgbuj2kO 54N63+hNRwQfYI97gst3nW84eP4eEnvjPnGhpr82GTNlT5T7OdVqtLuzmxfBCPxcvx1X 7bpg== X-Gm-Message-State: ALoCoQmLTxxYyLFIOGJPfmUF9YNaKTtIAzwAGHraNizRANwp5SVhw0Vv+fh6JZal1RYL3nnkHhv8 X-Received: by 10.152.219.136 with SMTP id po8mr694272lac.4.1422611504202; Fri, 30 Jan 2015 01:51:44 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.130 with SMTP id m2ls347152laf.87.gmail; Fri, 30 Jan 2015 01:51:44 -0800 (PST) X-Received: by 10.112.78.39 with SMTP id y7mr5786291lbw.42.1422611504028; Fri, 30 Jan 2015 01:51:44 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id w1si9714199laz.95.2015.01.30.01.51.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Jan 2015 01:51:43 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id gd6so22685609lab.4 for ; Fri, 30 Jan 2015 01:51:43 -0800 (PST) X-Received: by 10.152.20.169 with SMTP id o9mr5699824lae.50.1422611503913; Fri, 30 Jan 2015 01:51:43 -0800 (PST) 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.35.133 with SMTP id h5csp225934lbj; Fri, 30 Jan 2015 01:51:43 -0800 (PST) X-Received: by 10.70.135.233 with SMTP id pv9mr7867258pdb.48.1422611502115; Fri, 30 Jan 2015 01:51:42 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rm9si13118950pab.177.2015.01.30.01.51.41; Fri, 30 Jan 2015 01:51:42 -0800 (PST) Received-SPF: none (google.com: linux-kernel-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 S1760126AbbA3Jvg (ORCPT + 29 others); Fri, 30 Jan 2015 04:51:36 -0500 Received: from mail-we0-f175.google.com ([74.125.82.175]:45448 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759909AbbA3Jvc (ORCPT ); Fri, 30 Jan 2015 04:51:32 -0500 Received: by mail-we0-f175.google.com with SMTP id p10so26165300wes.6 for ; Fri, 30 Jan 2015 01:51:31 -0800 (PST) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@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.215.45 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: , 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; }