Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f1127ea authored by Alexander Shishkin's avatar Alexander Shishkin
Browse files

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: default avatarAlan Cox <alan.cox@intel.com>
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: default avatarLaurent Fert <laurent.fert@intel.com>
parent fb080190
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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)
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 = {
static struct intel_th_driver intel_th_pti_driver = {