mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
spi: npcm-fiu: drop unused remove callback
Drop the remove callback which is unused since commit 82c4fadb0b
("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>
This commit is contained in:
parent
5bbc10c50a
commit
48c0d3c6a4
|
|
@ -715,7 +715,6 @@ static int npcm_fiu_probe(struct platform_device *pdev)
|
|||
|
||||
fiu->info = &fiu_data_match->npcm_fiu_data_info[id];
|
||||
|
||||
platform_set_drvdata(pdev, fiu);
|
||||
fiu->dev = dev;
|
||||
|
||||
regbase = devm_platform_ioremap_resource_byname(pdev, "control");
|
||||
|
|
@ -738,8 +737,6 @@ static int npcm_fiu_probe(struct platform_device *pdev)
|
|||
fiu->spix_mode = of_property_read_bool(dev->of_node,
|
||||
"nuvoton,spix-mode");
|
||||
|
||||
platform_set_drvdata(pdev, fiu);
|
||||
|
||||
ctrl->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD
|
||||
| SPI_TX_DUAL | SPI_TX_QUAD;
|
||||
ctrl->setup = npcm_fiu_setup;
|
||||
|
|
@ -750,10 +747,6 @@ static int npcm_fiu_probe(struct platform_device *pdev)
|
|||
return devm_spi_register_controller(dev, ctrl);
|
||||
}
|
||||
|
||||
static void npcm_fiu_remove(struct platform_device *pdev)
|
||||
{
|
||||
}
|
||||
|
||||
MODULE_DEVICE_TABLE(of, npcm_fiu_dt_ids);
|
||||
|
||||
static struct platform_driver npcm_fiu_driver = {
|
||||
|
|
@ -763,7 +756,6 @@ static struct platform_driver npcm_fiu_driver = {
|
|||
.of_match_table = npcm_fiu_dt_ids,
|
||||
},
|
||||
.probe = npcm_fiu_probe,
|
||||
.remove = npcm_fiu_remove,
|
||||
};
|
||||
module_platform_driver(npcm_fiu_driver);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user