From patchwork Thu Sep 28 10:46:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 114409 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp579552qgf; Thu, 28 Sep 2017 03:46:56 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBYrSHDDpkPdqaNp5D+9cWYA/XRtKzpVL3k75c2VAismVkCLB8YEiE58s8xdcEhKo2YMp6A X-Received: by 10.84.216.6 with SMTP id m6mr3781814pli.143.1506595616303; Thu, 28 Sep 2017 03:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506595616; cv=none; d=google.com; s=arc-20160816; b=kCUJhadJdioK5Vsf/JJWEsiD2QwCBUc6Fr5Z1QV1BiHj/hdo4K1+VKr6iqHKmHL1qI HEdMohQ8X62jatOHqYtQZc/Ky5bI+JBFYVaqP2s8mRttZtkB+RP/Zt2/fiAVL7i9njmk cOZdSXIpRvCp5Rcn3pT6q0XG/BK0C/nTI3PIVj4kB6mZWBZ6u36tUi39y+w8Fy0qBrgL RmnwMf+kMa54pbvxY1MceSWDs/lbpc+DUwmU0Aumed7x81u2qzkhXEkfBnzyaQdrOxfy oJPzGlOUdhXTHOZTiHvBzF5Nf3LVQnuJFjHACj7rU0pXRuJRqhwwaetXNy0Lq6FoBzcI Cj+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=2cbzLFAd+JyMUfJ77ohFKp5fGMdZErHcrMHk+Xzlj88=; b=fdj29mwD6SayUNR6MvjEUd55BA0FpLtn6oNa1sQl7vE0ahqqPcp7GomDVIzjUDGcJh hXCJ7LzUVHksaakuHIf0Q6ROAtLzB/u8GrlpyoFt6d1fhC/W9s+iOul75NA+pWb7YARu ejBh2OzkMYoPtczcWNeGjLkELT+W9XI1B/So68tbQpEAMX064OVXXFiviquSFnJg0wtv x3bNb9lsttqDIIiALgGS3lCviAD+PW+FUEmugnW+SzWcmnr3tdhh1c8lDhXhcnRRiZ7A UNe2XZUfwheGZkLeDCYteih7nvwEtU1BhPeeimI9I/2TbolOau/RMtrYHiB8GloSy2mW Uq0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si1201933pls.503.2017.09.28.03.46.55; Thu, 28 Sep 2017 03:46:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752902AbdI1Kqy (ORCPT + 26 others); Thu, 28 Sep 2017 06:46:54 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54972 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752580AbdI1KqP (ORCPT ); Thu, 28 Sep 2017 06:46:15 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 938E3164F; Thu, 28 Sep 2017 03:46:15 -0700 (PDT) Received: from e107155-lin.cambridge.arm.com (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 118993F53D; Thu, 28 Sep 2017 03:46:13 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org Cc: Sudeep Holla , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Andy Gross , David Brown , linux-arm-msm@vger.kernel.org Subject: [RESEND][PATCH 2/4] firmware: qcom_scm: drop redandant of_platform_populate Date: Thu, 28 Sep 2017 11:46:00 +0100 Message-Id: <1506595562-10592-3-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506595562-10592-1-git-send-email-sudeep.holla@arm.com> References: <1506595562-10592-1-git-send-email-sudeep.holla@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that of_platform_default_populate_init() takes care of populating all the devices under the /firmware/ node, this patch removes the redandant call to of_platform_populate here. Cc: Andy Gross Cc: David Brown Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Sudeep Holla --- drivers/firmware/qcom_scm.c | 24 ------------------------ 1 file changed, 24 deletions(-) -- 2.7.4 diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index bb16510d75ba..a11e06e5cdb0 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -440,30 +440,6 @@ static struct platform_driver qcom_scm_driver = { static int __init qcom_scm_init(void) { - struct device_node *np, *fw_np; - int ret; - - fw_np = of_find_node_by_name(NULL, "firmware"); - - if (!fw_np) - return -ENODEV; - - np = of_find_matching_node(fw_np, qcom_scm_dt_match); - - if (!np) { - of_node_put(fw_np); - return -ENODEV; - } - - of_node_put(np); - - ret = of_platform_populate(fw_np, qcom_scm_dt_match, NULL, NULL); - - of_node_put(fw_np); - - if (ret) - return ret; - return platform_driver_register(&qcom_scm_driver); } subsys_initcall(qcom_scm_init);