summaryrefslogtreecommitdiff
path: root/drivers/ata
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-03-27 13:46:13 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-03-27 13:46:13 +0200
commitce07727aff5bec20f29abe9263a51ed6a355b228 (patch)
tree6426666f65b35ced021c82458d9463f19bec2f4a /drivers/ata
parent6babf38d894bec696761c10fbfccafceae76f4eb (diff)
parent2b6db9efa50799fa75ce609f24b355f29504bd9a (diff)
Merge back thermal control material for 6.4-rc1.
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/ahci_imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c
index a950767f7948..e45e91f5e703 100644
--- a/drivers/ata/ahci_imx.c
+++ b/drivers/ata/ahci_imx.c
@@ -418,7 +418,7 @@ static int __sata_ahci_read_temperature(void *dev, int *temp)
static int sata_ahci_read_temperature(struct thermal_zone_device *tz, int *temp)
{
- return __sata_ahci_read_temperature(tz->devdata, temp);
+ return __sata_ahci_read_temperature(thermal_zone_device_priv(tz), temp);
}
static ssize_t sata_ahci_show_temp(struct device *dev,