Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mei: vsc: Use vsc_tp_remove() as shutdown handler

After removing the vsc_tp_reset() call from vsc_tp_shutdown() it is now
identical to vsc_tp_remove().

Use vsc_tp_remove() as shutdown handler and remove vsc_tp_shutdown().

Signed-off-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250623085052.12347-5-hansg@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hans de Goede and committed by
Greg Kroah-Hartman
78ab08ef 0b504fdb

+2 -12
+2 -12
drivers/misc/mei/vsc-tp.c
··· 528 528 return ret; 529 529 } 530 530 531 + /* Note this is also used for shutdown */ 531 532 static void vsc_tp_remove(struct spi_device *spi) 532 - { 533 - struct vsc_tp *tp = spi_get_drvdata(spi); 534 - 535 - platform_device_unregister(tp->pdev); 536 - 537 - mutex_destroy(&tp->mutex); 538 - 539 - free_irq(spi->irq, tp); 540 - } 541 - 542 - static void vsc_tp_shutdown(struct spi_device *spi) 543 533 { 544 534 struct vsc_tp *tp = spi_get_drvdata(spi); 545 535 ··· 552 562 static struct spi_driver vsc_tp_driver = { 553 563 .probe = vsc_tp_probe, 554 564 .remove = vsc_tp_remove, 555 - .shutdown = vsc_tp_shutdown, 565 + .shutdown = vsc_tp_remove, 556 566 .driver = { 557 567 .name = "vsc-tp", 558 568 .acpi_match_table = vsc_tp_acpi_ids,