lkml.org 
[lkml]   [2023]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 11/20] thermal/drivers/spear: Don't use tz->device but pdev->dev
    Date
    Use the spear associated device instead of the thermal zone device
    which belongs to the thermal framework internals.

    Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
    ---
    drivers/thermal/spear_thermal.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c
    index 653439b965c8..6e78616a576e 100644
    --- a/drivers/thermal/spear_thermal.c
    +++ b/drivers/thermal/spear_thermal.c
    @@ -137,7 +137,7 @@ static int spear_thermal_probe(struct platform_device *pdev)

    platform_set_drvdata(pdev, spear_thermal);

    - dev_info(&spear_thermal->device, "Thermal Sensor Loaded at: 0x%p.\n",
    + dev_info(&pdev->dev, "Thermal Sensor Loaded at: 0x%p.\n",
    stdev->thermal_base);

    return 0;
    --
    2.34.1
    \
     
     \ /
      Last update: 2023-03-27 00:36    [W:5.015 / U:0.236 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site