summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Shishkin2016-03-04 15:10:20 +0100
committerAlexander Shishkin2016-04-08 15:11:54 +0200
commit8f1127ea09a7bfe7e1b5fab5b7f52bd56f2d1bf5 (patch)
treeeeb2b9e7b01d69b4b9755e3c8208588789af5590 /drivers
parentstm class: Remove unnecessary pointer increment (diff)
downloadkernel-qcow2-linux-8f1127ea09a7bfe7e1b5fab5b7f52bd56f2d1bf5.tar.gz
kernel-qcow2-linux-8f1127ea09a7bfe7e1b5fab5b7f52bd56f2d1bf5.tar.xz
kernel-qcow2-linux-8f1127ea09a7bfe7e1b5fab5b7f52bd56f2d1bf5.zip
intel_th: pti: Do remove sysfs group on device removal
Right now, the PTI output driver forgets to clean up its sysfs group when it gets removed. Fix this. Reported-by: Alan Cox <alan.cox@intel.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Laurent Fert <laurent.fert@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwtracing/intel_th/pti.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwtracing/intel_th/pti.c b/drivers/hwtracing/intel_th/pti.c
index 57cbfdcc7ef0..2692cad4c3c5 100644
--- a/drivers/hwtracing/intel_th/pti.c
+++ b/drivers/hwtracing/intel_th/pti.c
@@ -230,6 +230,7 @@ static int intel_th_pti_probe(struct intel_th_device *thdev)
static void intel_th_pti_remove(struct intel_th_device *thdev)
{
+ sysfs_remove_group(&thdev->dev.kobj, &pti_output_group);
}
static struct intel_th_driver intel_th_pti_driver = {