diff options
author | 2020-12-28 14:20:15 +0000 | |
---|---|---|
committer | 2020-12-28 14:20:15 +0000 | |
commit | 8db90aa36063f471bea1e65e23185913043852dc (patch) | |
tree | 32f765852c4663ae28751bd2ab32463da6591701 /drivers/fpga/ice40-spi.c | |
parent | spi: stm32: FIFO threshold level - fix align packet size (diff) | |
parent | Linux 5.11-rc1 (diff) | |
download | wireguard-linux-8db90aa36063f471bea1e65e23185913043852dc.tar.xz wireguard-linux-8db90aa36063f471bea1e65e23185913043852dc.zip |
Merge tag 'v5.11-rc1' into spi-5.11
Linux 5.11-rc1
Diffstat (limited to 'drivers/fpga/ice40-spi.c')
-rw-r--r-- | drivers/fpga/ice40-spi.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/fpga/ice40-spi.c b/drivers/fpga/ice40-spi.c index 8d689fea0dab..69dec5af23c3 100644 --- a/drivers/fpga/ice40-spi.c +++ b/drivers/fpga/ice40-spi.c @@ -183,18 +183,7 @@ static int ice40_fpga_probe(struct spi_device *spi) if (!mgr) return -ENOMEM; - spi_set_drvdata(spi, mgr); - - return fpga_mgr_register(mgr); -} - -static int ice40_fpga_remove(struct spi_device *spi) -{ - struct fpga_manager *mgr = spi_get_drvdata(spi); - - fpga_mgr_unregister(mgr); - - return 0; + return devm_fpga_mgr_register(dev, mgr); } static const struct of_device_id ice40_fpga_of_match[] = { @@ -205,7 +194,6 @@ MODULE_DEVICE_TABLE(of, ice40_fpga_of_match); static struct spi_driver ice40_fpga_driver = { .probe = ice40_fpga_probe, - .remove = ice40_fpga_remove, .driver = { .name = "ice40spi", .of_match_table = of_match_ptr(ice40_fpga_of_match), |