k3_bandgap.c (5f68d0785e5258ab5e6df9e351929973a0742c1a) k3_bandgap.c (4a16c190f761cb3a87dcbbf355f91c71ce1f8c0b)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * TI Bandgap temperature sensor driver for K3 SoC Family
4 *
5 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
6 */
7
8#include <linux/err.h>

--- 208 unchanged lines hidden (view full) ---

217 &data[id],
218 &k3_of_thermal_ops);
219 if (IS_ERR(data[id].tzd)) {
220 dev_err(dev, "thermal zone device is NULL\n");
221 ret = PTR_ERR(data[id].tzd);
222 goto err_alloc;
223 }
224
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * TI Bandgap temperature sensor driver for K3 SoC Family
4 *
5 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
6 */
7
8#include <linux/err.h>

--- 208 unchanged lines hidden (view full) ---

217 &data[id],
218 &k3_of_thermal_ops);
219 if (IS_ERR(data[id].tzd)) {
220 dev_err(dev, "thermal zone device is NULL\n");
221 ret = PTR_ERR(data[id].tzd);
222 goto err_alloc;
223 }
224
225 if (devm_thermal_add_hwmon_sysfs(data[id].tzd))
225 if (devm_thermal_add_hwmon_sysfs(dev, data[id].tzd))
226 dev_warn(dev, "Failed to add hwmon sysfs attributes\n");
227 }
228
229 platform_set_drvdata(pdev, bgp);
230
231 return 0;
232
233err_alloc:

--- 36 unchanged lines hidden ---
226 dev_warn(dev, "Failed to add hwmon sysfs attributes\n");
227 }
228
229 platform_set_drvdata(pdev, bgp);
230
231 return 0;
232
233err_alloc:

--- 36 unchanged lines hidden ---