imx8mm_thermal.c (5f68d0785e5258ab5e6df9e351929973a0742c1a) | imx8mm_thermal.c (4a16c190f761cb3a87dcbbf355f91c71ce1f8c0b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright 2020 NXP. 4 * 5 * Author: Anson Huang <Anson.Huang@nxp.com> 6 */ 7 8#include <linux/bitfield.h> --- 329 unchanged lines hidden (view full) --- 338 ret = PTR_ERR(tmu->sensors[i].tzd); 339 dev_err(&pdev->dev, 340 "failed to register thermal zone sensor[%d]: %d\n", 341 i, ret); 342 goto disable_clk; 343 } 344 tmu->sensors[i].hw_id = i; 345 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright 2020 NXP. 4 * 5 * Author: Anson Huang <Anson.Huang@nxp.com> 6 */ 7 8#include <linux/bitfield.h> --- 329 unchanged lines hidden (view full) --- 338 ret = PTR_ERR(tmu->sensors[i].tzd); 339 dev_err(&pdev->dev, 340 "failed to register thermal zone sensor[%d]: %d\n", 341 i, ret); 342 goto disable_clk; 343 } 344 tmu->sensors[i].hw_id = i; 345 |
346 if (devm_thermal_add_hwmon_sysfs(tmu->sensors[i].tzd)) | 346 if (devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd)) |
347 dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); 348 } 349 350 platform_set_drvdata(pdev, tmu); 351 352 ret = imx8mm_tmu_probe_set_calib(pdev, tmu); 353 if (ret) 354 goto disable_clk; --- 60 unchanged lines hidden --- | 347 dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); 348 } 349 350 platform_set_drvdata(pdev, tmu); 351 352 ret = imx8mm_tmu_probe_set_calib(pdev, tmu); 353 if (ret) 354 goto disable_clk; --- 60 unchanged lines hidden --- |