File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -568,6 +568,19 @@ static void vsc_tp_remove(struct spi_device *spi)
568
568
free_irq (spi -> irq , tp );
569
569
}
570
570
571
+ static void vsc_tp_shutdown (struct spi_device * spi )
572
+ {
573
+ struct vsc_tp * tp = spi_get_drvdata (spi );
574
+
575
+ platform_device_unregister (tp -> pdev );
576
+
577
+ mutex_destroy (& tp -> mutex );
578
+
579
+ vsc_tp_reset (tp );
580
+
581
+ free_irq (spi -> irq , tp );
582
+ }
583
+
571
584
static const struct acpi_device_id vsc_tp_acpi_ids [] = {
572
585
{ "INTC1009" }, /* Raptor Lake */
573
586
{ "INTC1058" }, /* Tiger Lake */
@@ -580,6 +593,7 @@ MODULE_DEVICE_TABLE(acpi, vsc_tp_acpi_ids);
580
593
static struct spi_driver vsc_tp_driver = {
581
594
.probe = vsc_tp_probe ,
582
595
.remove = vsc_tp_remove ,
596
+ .shutdown = vsc_tp_shutdown ,
583
597
.driver = {
584
598
.name = "vsc-tp" ,
585
599
.acpi_match_table = vsc_tp_acpi_ids ,
You can’t perform that action at this time.
0 commit comments