From patchwork Mon Jan 21 09:42:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10773463 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7421F1575 for ; Mon, 21 Jan 2019 09:43:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65CF9299A4 for ; Mon, 21 Jan 2019 09:43:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59D14299AA; Mon, 21 Jan 2019 09:43:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36C54299A4 for ; Mon, 21 Jan 2019 09:43:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727722AbfAUJnE (ORCPT ); Mon, 21 Jan 2019 04:43:04 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46767 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727140AbfAUJnE (ORCPT ); Mon, 21 Jan 2019 04:43:04 -0500 Received: by mail-wr1-f66.google.com with SMTP id l9so22402986wrt.13 for ; Mon, 21 Jan 2019 01:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ck6DLVRueLESAEqb4AoHP+TEzN+C6zqqxI0IKduFKsg=; b=fgAsy/X1T8FkFz6QZlONhE+x+uB651Hhgt5TQ62+Cwu9FLLUQKQRK23xxkJnhKtba/ sUpW5kRl054HPY1UgDlN0sN9WNoDilzFzG+Yzg+FMIuQ2xwxlEe33FNrwH1te+Fp7Zof CZMdN1thqAa40adQvQaPZEtMk2I2X5VRxkNK4= 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:in-reply-to :references:in-reply-to:references; bh=ck6DLVRueLESAEqb4AoHP+TEzN+C6zqqxI0IKduFKsg=; b=boiDfuU5NQYoCBZP9Dqe5tMojmQgvTce+HxCjHRLOgHzkXKYtJ/aRef9CME3cjumdT 0+7GOdSGt+ymE9H2tBzSccaNyF3N/XHVeNFszdbZX2S6/F0c4CsN9fe7qOySYOcpLdRW i/DlpvTbMlJFpd6kdyoVYL8j1h/T9HRQUQlw4I4PotarUp13KGn/tp5uAvtGWxub6tNS 011B0uUJYms6FwVG/7jWr2rTaHoOxAHNEN/eGZy2TPnBcaYfKXjbVe0NfFIwPli8V0SL bqz4V4jRS1b5pFaHFOyiqWEhAIwztYVhbase1qXILANf6almobRMiEClsi3gJEDhXuV4 VQfQ== X-Gm-Message-State: AJcUukeyOlYFcEGQuL16jL80UAbEgVgrruezWNKSzQ4yQAl4RQU23oP/ AOh+JeAlty8s2jRFX8BR5Rygzg== X-Google-Smtp-Source: ALg8bN4WbDWHoM2bd4PWUv69WHZtu7Hb2Hyg8e8odjqUllgsz0h4WwhodxaCHj5307WcwcDLWyetwA== X-Received: by 2002:a05:6000:11c3:: with SMTP id i3mr28676742wrx.221.1548063782484; Mon, 21 Jan 2019 01:43:02 -0800 (PST) Received: from localhost ([49.248.61.1]) by smtp.gmail.com with ESMTPSA id o5sm31176759wrw.46.2019.01.21.01.43.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 01:43:01 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, edubezval@gmail.com, swboyd@chromium.org, Zhang Rui , Daniel Lezcano , Viresh Kumar , linux-pm@vger.kernel.org Subject: [PATCH v1 1/2] thermal: of-thermal: Print name of device node with error Date: Mon, 21 Jan 2019 15:12:22 +0530 Message-Id: <04fc346fe98b9ada6a2bf8f18103fe2fe20240a4.1548063429.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make it easier to debug devicetree definition in case of errors. Signed-off-by: Amit Kucheria --- drivers/thermal/of-thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 4bfdb4a1e47d..2df059cc07e2 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -867,14 +867,14 @@ __init *thermal_of_build_thermal_zone(struct device_node *np) ret = of_property_read_u32(np, "polling-delay-passive", &prop); if (ret < 0) { - pr_err("missing polling-delay-passive property\n"); + pr_err("%pOFn: missing polling-delay-passive property\n", np); goto free_tz; } tz->passive_delay = prop; ret = of_property_read_u32(np, "polling-delay", &prop); if (ret < 0) { - pr_err("missing polling-delay property\n"); + pr_err("%pOFn: missing polling-delay property\n", np); goto free_tz; } tz->polling_delay = prop;