From: Yangtao Li <frank.li@vivo.com> To: Guillaume La Roque <glaroque@baylibre.com>, "Rafael J. Wysocki" <rafael@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] thermal/drivers/amlogic: Remove redundant msg in amlogic_thermal_probe() Date: Tue, 11 Jul 2023 20:45:12 +0800 [thread overview] Message-ID: <20230711124513.47771-2-frank.li@vivo.com> (raw) In-Reply-To: <20230711124513.47771-1-frank.li@vivo.com> The upper-layer devm_thermal_of_zone_register() function can directly print error information. Signed-off-by: Yangtao Li <frank.li@vivo.com> --- drivers/thermal/amlogic_thermal.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c index 756b218880a7..134f5a8d1019 100644 --- a/drivers/thermal/amlogic_thermal.c +++ b/drivers/thermal/amlogic_thermal.c @@ -276,11 +276,8 @@ static int amlogic_thermal_probe(struct platform_device *pdev) 0, pdata, &amlogic_thermal_ops); - if (IS_ERR(pdata->tzd)) { - ret = PTR_ERR(pdata->tzd); - dev_err(dev, "Failed to register tsensor: %d\n", ret); - return ret; - } + if (IS_ERR(pdata->tzd)) + return PTR_ERR(pdata->tzd); devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd); -- 2.39.0
WARNING: multiple messages have this Message-ID (diff)
From: Yangtao Li <frank.li@vivo.com> To: Guillaume La Roque <glaroque@baylibre.com>, "Rafael J. Wysocki" <rafael@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] thermal/drivers/amlogic: Remove redundant msg in amlogic_thermal_probe() Date: Tue, 11 Jul 2023 20:45:12 +0800 [thread overview] Message-ID: <20230711124513.47771-2-frank.li@vivo.com> (raw) In-Reply-To: <20230711124513.47771-1-frank.li@vivo.com> The upper-layer devm_thermal_of_zone_register() function can directly print error information. Signed-off-by: Yangtao Li <frank.li@vivo.com> --- drivers/thermal/amlogic_thermal.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c index 756b218880a7..134f5a8d1019 100644 --- a/drivers/thermal/amlogic_thermal.c +++ b/drivers/thermal/amlogic_thermal.c @@ -276,11 +276,8 @@ static int amlogic_thermal_probe(struct platform_device *pdev) 0, pdata, &amlogic_thermal_ops); - if (IS_ERR(pdata->tzd)) { - ret = PTR_ERR(pdata->tzd); - dev_err(dev, "Failed to register tsensor: %d\n", ret); - return ret; - } + if (IS_ERR(pdata->tzd)) + return PTR_ERR(pdata->tzd); devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd); -- 2.39.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2023-07-11 12:45 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-07-11 12:45 [PATCH 1/2] thermal/of: Add error information printing for devm_thermal_of_zone_register() Yangtao Li 2023-07-11 12:45 ` Yangtao Li [this message] 2023-07-11 12:45 ` [PATCH 2/2] thermal/drivers/amlogic: Remove redundant msg in amlogic_thermal_probe() Yangtao Li 2023-07-12 2:51 ` [PATCH 1/2] thermal/of: Add error information printing for devm_thermal_of_zone_register() Yangtao Li 2023-07-13 13:00 ` Daniel Lezcano
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230711124513.47771-2-frank.li@vivo.com \ --to=frank.li@vivo.com \ --cc=amitk@kernel.org \ --cc=daniel.lezcano@linaro.org \ --cc=glaroque@baylibre.com \ --cc=linux-amlogic@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=rafael@kernel.org \ --cc=rui.zhang@intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.