From patchwork Fri Aug 11 13:30:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 109869 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp918017qge; Fri, 11 Aug 2017 06:31:13 -0700 (PDT) X-Received: by 10.99.170.3 with SMTP id e3mr14976641pgf.411.1502458272968; Fri, 11 Aug 2017 06:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502458272; cv=none; d=google.com; s=arc-20160816; b=Mssr1X2Cza3mBCuNEImGWCfzXVGF7ngsGol8FhIka4FMjdYOWu5jWsJ1WLFt8jIJ5S MVXgBCkcJQ89w3dVQqRUpIuZiLcYHt+HH7dBPfwEE7HVlDynVH1mC+UYX5m+QHqejguX TutWwW3PeWCwFH1+1SReA7FuVZsDmOv7U89kvNcnmSDNPjzcm4CnNj7a+M9dXcrfFcgq rZWxw/A5OeGewirWPEapQWonFaT5WnLr4EzCmobGMNSMPKc8s+AlPGdAMCgQeqvEXYNY OjVgJlrgfbsrmILCo/zqWlhH6zEBOcaLEsl/luv2IFbbr/SrlvN+kNGd0sM8onvbQeI+ tmWg== 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=Zsp/tIAGHQQvB95cionTv4HkQrpw9LHJRAIEPy26O20=; b=RUxwgrLPppTEdCz8Pavfyhs47u1mcT+g220APp7sd6pX7RBFOkuwP5Du+Z5OW6e/5f a+DJStyBzOCNgZJT3rsohTSiikDMkuurqpmncED4P6IkKxa6JCUH+Xcxl+NZVZuNLass I/aBhqKlk5iY3dUZP7W1gjcrg186Rld2+7QzFkbXekVVNPvgKxubq92cX0duvOpfr89X XBRMwZRqMNErOilyXe4wKmtrhwQhjooaEFDOP8UVkofnHRDslWFVebMlj/6LE9qQ4Lmj IcEtppOw4IlcVnLG9SflJaZw75HnvMrRhQ2EYOk4/KrjITSwUTTf3OuRRKZW734CSW3E jpxw== 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 h2si575757plk.617.2017.08.11.06.31.12; Fri, 11 Aug 2017 06:31:12 -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 S1753401AbdHKNbJ (ORCPT + 25 others); Fri, 11 Aug 2017 09:31:09 -0400 Received: from foss.arm.com ([217.140.101.70]:44576 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296AbdHKNaY (ORCPT ); Fri, 11 Aug 2017 09:30:24 -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 2DF8313D5; Fri, 11 Aug 2017 06:30:24 -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 7BDF83F540; Fri, 11 Aug 2017 06:30:22 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org Cc: Sudeep Holla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Arnd Bergmann , Andy Gross , Jens Wiklander , David Brown Subject: [PATCH 2/3] firmware: qcom_scm: drop redandant of_platform_populate Date: Fri, 11 Aug 2017 14:30:36 +0100 Message-Id: <1502458237-1683-3-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502458237-1683-1-git-send-email-sudeep.holla@arm.com> References: <1502458237-1683-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 firmware_of_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 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);