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.

spi: npcm-fiu: drop unused remove callback

Drop the remove callback which is unused since commit 82c4fadb0b95
("spi: npcm-fiu: Use helper function devm_clk_get_enabled()").

The above mentioned commit also removed the last user of the platform
driver data which no longer needs to be set (twice).

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260409120810.388909-1-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Johan Hovold and committed by
Mark Brown
48c0d3c6 5bbc10c5

-8
-8
drivers/spi/spi-npcm-fiu.c
··· 715 715 716 716 fiu->info = &fiu_data_match->npcm_fiu_data_info[id]; 717 717 718 - platform_set_drvdata(pdev, fiu); 719 718 fiu->dev = dev; 720 719 721 720 regbase = devm_platform_ioremap_resource_byname(pdev, "control"); ··· 737 738 fiu->spix_mode = of_property_read_bool(dev->of_node, 738 739 "nuvoton,spix-mode"); 739 740 740 - platform_set_drvdata(pdev, fiu); 741 - 742 741 ctrl->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD 743 742 | SPI_TX_DUAL | SPI_TX_QUAD; 744 743 ctrl->setup = npcm_fiu_setup; ··· 745 748 ctrl->num_chipselect = fiu->info->max_cs; 746 749 747 750 return devm_spi_register_controller(dev, ctrl); 748 - } 749 - 750 - static void npcm_fiu_remove(struct platform_device *pdev) 751 - { 752 751 } 753 752 754 753 MODULE_DEVICE_TABLE(of, npcm_fiu_dt_ids); ··· 756 763 .of_match_table = npcm_fiu_dt_ids, 757 764 }, 758 765 .probe = npcm_fiu_probe, 759 - .remove = npcm_fiu_remove, 760 766 }; 761 767 module_platform_driver(npcm_fiu_driver); 762 768