From patchwork Tue Dec 5 15:52:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loys Ollivier X-Patchwork-Id: 120704 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5911901qgn; Tue, 5 Dec 2017 07:52:49 -0800 (PST) X-Google-Smtp-Source: AGs4zMZtPV/oNf1LDu1+3RThRjJxkvOMPO5c3psxM+fYjAO/7OpSNLlTJOtx2OY31RcDJ3a8iNzv X-Received: by 10.84.240.193 with SMTP id l1mr18857288plt.240.1512489169667; Tue, 05 Dec 2017 07:52:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512489169; cv=none; d=google.com; s=arc-20160816; b=zjeRbmY7ygCw7y0vGcsk9pePHuQO0gN17KSbSuQKzMjV5GWO8c9E7zKGxwA7vN3Cqt 9QAvILLv7D7Nqmj98EkwE26UESRLz40l8yCI9eFBNjVac75dO4kco0LHFdRliQ3K+3yo Ox+qKIZlqhO8qONZKGhkl2lg+B5g8CkeqBx1L4W/kTSp8mO4nt7lxxVd1BzpEwdnN/YQ +F/01RTQ4SQVRSLmkuTqDG8c83NBUh5NifmUtVSMuoMXp+aZdrewfVJYLp9Z2wOPzS+x dsyJS+7c+wkInUxp56NKCmHL+JxkKZiiY8h7zMEewgns6Yq8QPnGUxyb7T0seGOtJKsG 1XSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=kglTYVJ+PawsjDz9gPw4ftUpSbZ0kVLIfGoZPVj8/FY=; b=OlujaFEN8xFR7jejm/o40CHzDyJPUQMLAS7TKxr7igBHcTUkzR6Nn+5JVBcwQPbgAB uKAJaUq//iAGLViy245kuqDJ0tXxc+0UNM5ko/1lEBZGY9lY6/1ClCn/ShQU/pMc6CZY uKs1X0cWqKtNOEAwfqD+Wm9kiDP8Yju/i4Z19OlSxnqAli8C1dlUT0Rl6zRAxWLOTs8U mpPqFScVNGJS2kA9PfF/506RF7dTWnAn6Ito1p3e6lVAcAqOrpgYNWEKkKcy/FiYbHWV A1EQxHKZQ2pX89hZmsd/D7sD8KDseHBe+2NDrQvu6G5BEepxpUlBlieXPpss+9ojuC6s LweA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=yxia3xna; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 r26si242690pgd.483.2017.12.05.07.52.49; Tue, 05 Dec 2017 07:52:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=yxia3xna; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752762AbdLEPwr (ORCPT + 10 others); Tue, 5 Dec 2017 10:52:47 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34225 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752649AbdLEPwp (ORCPT ); Tue, 5 Dec 2017 10:52:45 -0500 Received: by mail-wr0-f194.google.com with SMTP id y21so819719wrc.1 for ; Tue, 05 Dec 2017 07:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=YuRDdFCYlx1zLr3hU5EnIdC0R90oi5ffZEI2QUBlh+w=; b=yxia3xnai5c4BHe3nhQIsO3LcLZYfGh8bfLkbWDCtOtnG9yfjwwHfTpCC1xk2QWOs5 TmX7eNUNczIWX6VQjRE+3VNgDTMbERTlMcsZFCO675q6LjYqgVywTF3jRgEeal7KddC7 We+cpGxAfxqH/REbAp3WICh/P70SnCk6Kp7FPmDGOT+EOvpRrOl25Zrgd250kwAS4fLt BBmFDBQ1Nubh+b9iD/r3/2qq5OmLYBHXUS2zMn7JQs4jk3SWsD1F9YbZ0aN6jqhJwyU0 rITgFGC2cPOlsq/ihmChM0ofrZ13hIrMXO5MDWCu6Q2HSL+FiOZPbqpPQLVfWjaRP+Ix jYGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YuRDdFCYlx1zLr3hU5EnIdC0R90oi5ffZEI2QUBlh+w=; b=h5axbR7VWPHHOtgd9iKke2eXk6YFVgx3fNcKG6+ZVD1hlYUe4ZRs6Cl2p+rZhAfw2X a+yDzWGssq+ZXxQa971klV9MHhT1uNWLHuww6dHHBEMfl/QCxsvEhYvvgMzob2e/D4DQ b3JveKMuky6gjbMHsA+v8IqZf8BVJNXC7or6Y0fDQ0Mdd2Uq7rNq9Ts0jfs9XOVD9dsl QKkZP/eLaznxP9XtcaL0yieToixprgDUqKbo+ExMZkA/NU2pmEdN5ogc1Xi3NHa80JQM gsp7J9ccp9bo1ypTpsAFlErSc/lEr0qXtkJXDd4kzLZr/RupU3ZAJTxivgZ8zBZCTEOH 7J/g== X-Gm-Message-State: AJaThX4IqHbUmzs50ZDRRIR0PIscgYovWssZ3a8sAwu8bTWgsP3mbNl+ 9TdCfH9AlhNM/7zqYGtOSJ1ztw== X-Received: by 10.223.176.121 with SMTP id g54mr17845469wra.165.1512489163913; Tue, 05 Dec 2017 07:52:43 -0800 (PST) Received: from loys-XPS-13-9360.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id j132sm11278632wmd.2.2017.12.05.07.52.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Dec 2017 07:52:43 -0800 (PST) From: Loys Ollivier To: Andy Gross , David Brown Cc: Loys Ollivier , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Jerome Brunet Subject: [PATCH] firmware: qcom: scm: Fix incorrect of_node_put call in scm_init Date: Tue, 5 Dec 2017 16:52:14 +0100 Message-Id: <1512489134-28220-1-git-send-email-lollivier@baylibre.com> X-Mailer: git-send-email 2.7.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org When using other platform architectures, in the init of the qcom_scm driver, of_node_put is called on /firmware if no qcom dt is found. This results in a kernel error: Bad of_node_put() on /firmware. The call to of_node_put from the qcom_scm init is unnecessary as of_find_matching_node is calling it automatically. Remove this of_node_put(). Fixes: d0f6fa7ba2d6 ("firmware: qcom: scm: Convert SCM to platform driver") Signed-off-by: Loys Ollivier --- drivers/firmware/qcom_scm.c | 1 - 1 file changed, 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index af4c75217ea6..575930c80fba 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -633,7 +633,6 @@ static int __init qcom_scm_init(void) np = of_find_matching_node(fw_np, qcom_scm_dt_match); if (!np) { - of_node_put(fw_np); return -ENODEV; }