Lines Matching defs:error
483 u32 error = table->data_mask;
520 return error;
524 pr_err("%s: invalid temperature, temp=%d error=%d\n",
525 __func__, temp, error);
526 return error;
1179 /* The tsadc wont to handle the error in here since some SoCs didn't
1196 int error;
1200 error = tsadc->set_tshut_temp(&tsadc->table, id, thermal->regs,
1202 if (error)
1203 dev_err(&pdev->dev, "%s: invalid tshut=%d, error=%d\n",
1204 __func__, thermal->tshut_temp, error);
1211 error = PTR_ERR(sensor->tzd);
1213 id, error);
1214 return error;
1239 int error;
1267 error = PTR_ERR(thermal->reset);
1268 dev_err(&pdev->dev, "failed to get tsadc reset: %d\n", error);
1269 return error;
1274 error = PTR_ERR(thermal->clk);
1275 dev_err(&pdev->dev, "failed to get tsadc clock: %d\n", error);
1276 return error;
1281 error = PTR_ERR(thermal->pclk);
1283 error);
1284 return error;
1287 error = clk_prepare_enable(thermal->clk);
1288 if (error) {
1290 error);
1291 return error;
1294 error = clk_prepare_enable(thermal->pclk);
1295 if (error) {
1296 dev_err(&pdev->dev, "failed to enable pclk: %d\n", error);
1302 error = rockchip_configure_from_dt(&pdev->dev, np, thermal);
1303 if (error) {
1305 error);
1313 error = rockchip_thermal_register_sensor(pdev, thermal,
1316 if (error) {
1318 "failed to register sensor[%d] : error = %d\n",
1319 i, error);
1324 error = devm_request_threaded_irq(&pdev->dev, irq, NULL,
1328 if (error) {
1330 "failed to request tsadc irq: %d\n", error);
1339 error = thermal_add_hwmon_sysfs(thermal->sensors[i].tzd);
1340 if (error)
1343 i, error);
1355 return error;
1400 int error;
1402 error = clk_enable(thermal->clk);
1403 if (error)
1404 return error;
1406 error = clk_enable(thermal->pclk);
1407 if (error) {
1409 return error;
1423 error = thermal->chip->set_tshut_temp(&thermal->chip->table,
1426 if (error)
1427 dev_err(dev, "%s: invalid tshut=%d, error=%d\n",
1428 __func__, thermal->tshut_temp, error);