Lines Matching refs:error

451 	int error;  in rockchip_thermal_register_sensor()  local
461 error = PTR_ERR(sensor->tzd); in rockchip_thermal_register_sensor()
463 id, error); in rockchip_thermal_register_sensor()
464 return error; in rockchip_thermal_register_sensor()
488 int error; in rockchip_thermal_probe() local
518 error = PTR_ERR(thermal->reset); in rockchip_thermal_probe()
519 dev_err(&pdev->dev, "failed to get tsadc reset: %d\n", error); in rockchip_thermal_probe()
520 return error; in rockchip_thermal_probe()
525 error = PTR_ERR(thermal->clk); in rockchip_thermal_probe()
526 dev_err(&pdev->dev, "failed to get tsadc clock: %d\n", error); in rockchip_thermal_probe()
527 return error; in rockchip_thermal_probe()
532 error = PTR_ERR(thermal->pclk); in rockchip_thermal_probe()
534 error); in rockchip_thermal_probe()
535 return error; in rockchip_thermal_probe()
538 error = clk_prepare_enable(thermal->clk); in rockchip_thermal_probe()
539 if (error) { in rockchip_thermal_probe()
541 error); in rockchip_thermal_probe()
542 return error; in rockchip_thermal_probe()
545 error = clk_prepare_enable(thermal->pclk); in rockchip_thermal_probe()
546 if (error) { in rockchip_thermal_probe()
547 dev_err(&pdev->dev, "failed to enable pclk: %d\n", error); in rockchip_thermal_probe()
553 error = rockchip_configure_from_dt(&pdev->dev, np, thermal); in rockchip_thermal_probe()
554 if (error) { in rockchip_thermal_probe()
556 error); in rockchip_thermal_probe()
562 error = rockchip_thermal_register_sensor(pdev, thermal, in rockchip_thermal_probe()
565 if (error) { in rockchip_thermal_probe()
567 "failed to register CPU thermal sensor: %d\n", error); in rockchip_thermal_probe()
571 error = rockchip_thermal_register_sensor(pdev, thermal, in rockchip_thermal_probe()
574 if (error) { in rockchip_thermal_probe()
576 "failed to register GPU thermal sensor: %d\n", error); in rockchip_thermal_probe()
580 error = devm_request_threaded_irq(&pdev->dev, irq, NULL, in rockchip_thermal_probe()
584 if (error) { in rockchip_thermal_probe()
586 "failed to request tsadc irq: %d\n", error); in rockchip_thermal_probe()
608 return error; in rockchip_thermal_probe()
653 int error; in rockchip_thermal_resume() local
655 error = clk_enable(thermal->clk); in rockchip_thermal_resume()
656 if (error) in rockchip_thermal_resume()
657 return error; in rockchip_thermal_resume()
659 error = clk_enable(thermal->pclk); in rockchip_thermal_resume()
660 if (error) in rockchip_thermal_resume()
661 return error; in rockchip_thermal_resume()