aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/armada_thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c
index a4befd2d683d..4c275ec10ac5 100644
--- a/drivers/thermal/armada_thermal.c
+++ b/drivers/thermal/armada_thermal.c
@@ -402,8 +402,8 @@ static int armada_thermal_probe(struct platform_device *pdev)
402 402
403 priv->data->init_sensor(pdev, priv); 403 priv->data->init_sensor(pdev, priv);
404 404
405 thermal = thermal_zone_device_register("armada_thermal", 0, 0, 405 thermal = thermal_zone_device_register(dev_name(&pdev->dev), 0, 0, priv,
406 priv, &ops, NULL, 0, 0); 406 &ops, NULL, 0, 0);
407 if (IS_ERR(thermal)) { 407 if (IS_ERR(thermal)) {
408 dev_err(&pdev->dev, 408 dev_err(&pdev->dev,
409 "Failed to register thermal zone device\n"); 409 "Failed to register thermal zone device\n");