[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOMZO5AfyyqaAgn5enaW=Cncxinrp=TBAc+E_jWAWDLkYwA0=w@mail.gmail.com>
Date: Tue, 29 Oct 2019 07:26:25 -0300
From: Fabio Estevam <festevam@...il.com>
To: Anson Huang <Anson.Huang@....com>
Cc: "rui.zhang" <rui.zhang@...el.com>,
Eduardo Valentin <edubezval@...il.com>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Amit Kucheria <amit.kucheria@...durent.com>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Sascha Hauer <kernel@...gutronix.de>,
Catalin Marinas <catalin.marinas@....com>, will@...nel.org,
Leonard Crestez <leonard.crestez@....com>,
Abel Vesa <abel.vesa@....com>, Ping Bai <ping.bai@....com>,
Daniel Baluta <daniel.baluta@....com>, Li Jun <jun.li@....com>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Olof Johansson <olof@...om.net>, mripard@...nel.org,
Vinod <vkoul@...nel.org>,
Jagan Teki <jagan@...rulasolutions.com>,
Dinh Nguyen <dinguyen@...nel.org>,
marcin.juszkiewicz@...aro.org, linux-pm@...r.kernel.org,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>,
"moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE"
<linux-arm-kernel@...ts.infradead.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
NXP Linux Team <Linux-imx@....com>
Subject: Re: [PATCH RESEND 2/4] thermal: imx8mm: Add support for i.MX8MM
thermal monitoring unit
Hi Anson,
On Mon, Oct 28, 2019 at 3:07 AM Anson Huang <Anson.Huang@....com> wrote:
> + ret = clk_prepare_enable(tmu->clk);
> + if (ret) {
> + dev_err(&pdev->dev, "failed to enable tmu clock: %d\n", ret);
> + return ret;
> + }
> +
> + tmu->tzd = devm_thermal_zone_of_sensor_register(&pdev->dev, 0,
> + tmu, &tmu_tz_ops);
> + if (IS_ERR(tmu->tzd)) {
> + dev_err(&pdev->dev,
> + "failed to register thermal zone sensor: %d\n", ret);
You should disable the tmu clock in the error path.
> + return PTR_ERR(tmu->tzd);
Powered by blists - more mailing lists