From patchwork Sun Feb 26 22:53:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 61681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2131304wrd; Sun, 26 Feb 2023 14:56:52 -0800 (PST) X-Google-Smtp-Source: AK7set+TdKHFP+LFjChWXOKe+6pEInAa87oqdF1HvEX0ej7sefNtGxHqNCZv2eqfaQyRB01+7KG6 X-Received: by 2002:a17:902:ecd0:b0:19a:9269:7d1 with SMTP id a16-20020a170902ecd000b0019a926907d1mr24392561plh.4.1677452212415; Sun, 26 Feb 2023 14:56:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677452212; cv=none; d=google.com; s=arc-20160816; b=ImVxV9jQAmRx/oIpAE9vyQicM6OJb9JBtfwGnDqCqZtNw/tyQ4hVhNjBJ1OqUWo1UX ok5CUyQvlg53vbYpgvFEDAdb3sj4GtT55hutOxKJM9xeuzufaEhQEZE+5JIuOO+eWpxo zfNe93jqOX5sNauUPPpVY0BuZF1PQkyOQQ0yUB3RewA6RcA4wcqyVefhN2CgMR4jaX9h zJbdodGnls1WkQ497U2HdIJPPsep7iJdLUnoT1DK19iCBgL8nTsQXCOlbkoHXSnrQf4t KzMgidnjtUw3UEDbnsxVyLWaN8BCc1KZWGZUB4RhNO3R9NmB3u8Cx//8hFOXalioAI+R zlGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MVdgWpAFCojRfEmtrK5jCjMCpct5NgUpVAZqrr++Uhs=; b=WsjJR43c81DFk96tEXOOaoXe4arcYEG8gYveb9PoV6kWxdbZHn4T+f95FGq0J+6ZsU ySc8m8RVnAQP7+XvF3MAkMRxO1JGVXRswljBnax5eTrNeCSdptAddA239QPK81BA1bLj WkXO5mVU/5VgRUG4ApHztw//mDTuNBRU6zRbKLgTiCnzArskFinc3qjZHQYsoOgn10uC bCu5m9loKMSzNI0aiTNf3gR9ICIzGrCfVO4IG2Bcbeyjk5DTR8FaL7xebszZx61O7xHv xk53CGNLcGdwPw9mtx7iA4EkeOqVlShdpUQ4QczOPHCGvhKiyLom6oo2WQF6T/2VvTMY kpFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="r35ft/Rk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ks14-20020a170903084e00b0019cd68a1387si5540503plb.336.2023.02.26.14.56.39; Sun, 26 Feb 2023 14:56:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="r35ft/Rk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229925AbjBZW4P (ORCPT + 99 others); Sun, 26 Feb 2023 17:56:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbjBZWzw (ORCPT ); Sun, 26 Feb 2023 17:55:52 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 075ED193FD for ; Sun, 26 Feb 2023 14:55:22 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id r7so4412821wrz.6 for ; Sun, 26 Feb 2023 14:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MVdgWpAFCojRfEmtrK5jCjMCpct5NgUpVAZqrr++Uhs=; b=r35ft/RkMStRpSVCURhPhaJIBRgTCDbZd5rsRy1lzDSGaJBVu0JesPbExfdnAl/Tac QJ/E2clO5AUJL6xFwDUY9RC+A1+OZ8/Ktob+21s2izraLFBE/7fmafkLEY0518MtAHZd Dd5jx9S5N52SF0D5hzj8gJtK39sVZoN849y19ktumbjZdg8NlfvCgp2PZWWQ/kmJVqjI 98yOquyeMyGgAQPGzm3PpoI+0CzPODzVr9MfACHMTXcQtQi1oP1HYT0DQsY/3u25YO2R RhX2csnfPKk7g/qLUsN78CZm6qO/s/63714iS7J9O9zC18XL6/AEAXippjNmsrsJULo1 WB2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MVdgWpAFCojRfEmtrK5jCjMCpct5NgUpVAZqrr++Uhs=; b=TbylKbjErn/jl2EGqYVch6xI9xUW2L0DaE2CgXs0uWk8NbFFrzfOmxTFCgjV833AIK pT3DGHEyJmS2FigIvuhoBDL+EOucZOx49+IrP1bX9uXRHd08rylGTcueJlwQ1spOrwYv mXKmKyJIRQPQjZRJfelTTWXfW/MA044KICKpSrXmscv7ysdlS0WvS3ECDstp8tDmDSRr 9I8/AqC65cbjtW7NvjZbWHpHVCvC9wpZFcHP1ZXYF5az0w+quUNVMoNAqisygVAd+FRR CMNFB6RiHWglxVLHWkFf7DBk2jRil6M+wqO7UkIE3GEopwu/P8GAu5Dla9LG+SvLDsAI SotA== X-Gm-Message-State: AO0yUKXas1F4wd8WonXRqNA6o7EbIo4zLIRaxb/pIG+fvCN6599pFGMW Pw9TvAaJMNFTtT+Sd5UIoealkw== X-Received: by 2002:adf:cd0c:0:b0:2c7:454:cee8 with SMTP id w12-20020adfcd0c000000b002c70454cee8mr17637194wrm.1.1677452108846; Sun, 26 Feb 2023 14:55:08 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:8baa:6b32:391b:62de]) by smtp.gmail.com with ESMTPSA id d10-20020a05600c3aca00b003eb369abd92sm6138074wms.2.2023.02.26.14.55.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 14:55:08 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria , Zhang Rui Subject: [PATCH v3 11/20] thermal/drivers/spear: Don't use tz->device but pdev->dev Date: Sun, 26 Feb 2023 23:53:57 +0100 Message-Id: <20230226225406.979703-12-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230226225406.979703-1-daniel.lezcano@linaro.org> References: <20230226225406.979703-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758936131420147732?= X-GMAIL-MSGID: =?utf-8?q?1758936131420147732?= Use the spear associated device instead of the thermal zone device which belongs to the thermal framework internals. Signed-off-by: Daniel Lezcano --- drivers/thermal/spear_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c index 653439b965c8..6e78616a576e 100644 --- a/drivers/thermal/spear_thermal.c +++ b/drivers/thermal/spear_thermal.c @@ -137,7 +137,7 @@ static int spear_thermal_probe(struct platform_device *pdev) platform_set_drvdata(pdev, spear_thermal); - dev_info(&spear_thermal->device, "Thermal Sensor Loaded at: 0x%p.\n", + dev_info(&pdev->dev, "Thermal Sensor Loaded at: 0x%p.\n", stdev->thermal_base); return 0;