Lines 1299-1307
static void thermal_release(struct device *dev)
Link Here
|
1299 |
} |
1299 |
} |
1300 |
} |
1300 |
} |
1301 |
|
1301 |
|
|
|
1302 |
#ifdef CONFIG_PM |
1303 |
static int thermal_suspend(struct device *dev) |
1304 |
{ |
1305 |
struct thermal_zone_device *tz = |
1306 |
container_of(dev, struct thermal_zone_device, device); |
1307 |
|
1308 |
tz->temperature = THERMAL_TEMP_INVALID; |
1309 |
tz->last_temperature = THERMAL_TEMP_INVALID; |
1310 |
return 0; |
1311 |
} |
1312 |
|
1313 |
static const struct dev_pm_ops thermal_pm_ops = { |
1314 |
.suspend = thermal_suspend, |
1315 |
}; |
1316 |
#endif |
1317 |
|
1302 |
static struct class thermal_class = { |
1318 |
static struct class thermal_class = { |
1303 |
.name = "thermal", |
1319 |
.name = "thermal", |
1304 |
.dev_release = thermal_release, |
1320 |
.dev_release = thermal_release, |
|
|
1321 |
#ifdef CONFIG_PM |
1322 |
.pm = &thermal_pm_ops, |
1323 |
#endif |
1305 |
}; |
1324 |
}; |
1306 |
|
1325 |
|
1307 |
/** |
1326 |
/** |
1308 |
- |
|
|