summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/occ/p9_sbe.c
diff options
context:
space:
mode:
authorEddie James <eajames@linux.vnet.ibm.com>2018-11-08 22:05:29 +0100
committerGuenter Roeck <linux@roeck-us.net>2018-12-17 00:13:10 +0100
commitdf04ced684d48f6ec5729ccd034702952160c6b3 (patch)
treec036e0a54bcbaf44c0d1a973646b3070f9623e69 /drivers/hwmon/occ/p9_sbe.c
parenthwmon (occ): Add sensor attributes and register hwmon device (diff)
downloadlinux-df04ced684d48f6ec5729ccd034702952160c6b3.tar.xz
linux-df04ced684d48f6ec5729ccd034702952160c6b3.zip
hwmon (occ): Add sysfs attributes for additional OCC data
The OCC provides a variety of additional information about the state of the host processor, such as throttling, error conditions, and the number of OCCs detected in the system. This information is essential to service processor applications such as fan control and host management. Therefore, export this data in the form of sysfs attributes attached to the platform device (to which the hwmon device is also attached). Signed-off-by: Eddie James <eajames@linux.ibm.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/occ/p9_sbe.c')
-rw-r--r--drivers/hwmon/occ/p9_sbe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/occ/p9_sbe.c b/drivers/hwmon/occ/p9_sbe.c
index b33f4fe63fbb..b65c1d1dfb54 100644
--- a/drivers/hwmon/occ/p9_sbe.c
+++ b/drivers/hwmon/occ/p9_sbe.c
@@ -86,6 +86,7 @@ static int p9_sbe_occ_remove(struct platform_device *pdev)
struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ);
ctx->sbe = NULL;
+ occ_shutdown(occ);
return 0;
}