thermal/drivers/qcom-spmi-temp-alarm: Drop unused driver data
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 28 Feb 2025 08:29:36 +0000 (09:29 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Mar 2025 19:52:04 +0000 (20:52 +0100)
The platform device driver data has not been used since commit
7a4ca51b7040 ("thermal/drivers/qcom-spmi: Use devm_iio_channel_get") so
drop the unnecessary assignment.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250228082936.5694-1-johan+linaro@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/qcom/qcom-spmi-temp-alarm.c

index c2d59cbfaea91215a8d6eedac3e799ad772aaed5..a81e7d6e865f9104e0dc2cdb24c9fb6133680715 100644 (file)
@@ -360,7 +360,6 @@ static int qpnp_tm_probe(struct platform_device *pdev)
        if (!chip)
                return -ENOMEM;
 
-       dev_set_drvdata(&pdev->dev, chip);
        chip->dev = &pdev->dev;
 
        mutex_init(&chip->lock);