lkml.org 
[lkml]   [2016]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[QUEUED v20160420 09/19] intel_th: pti: Do remove sysfs group on device removal
Date
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>
---
drivers/hwtracing/intel_th/pti.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/hwtracing/intel_th/pti.c b/drivers/hwtracing/intel_th/pti.c
index 57cbfdcc7e..2692cad4c3 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 = {
--
2.8.0.rc3
\
 
 \ /
  Last update: 2016-04-20 13:01    [W:0.557 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site