diff options
Diffstat (limited to 'drivers/fpga/stratix10-soc.c')
| -rw-r--r-- | drivers/fpga/stratix10-soc.c | 9 | 
1 files changed, 2 insertions, 7 deletions
| diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c index 657a70c5fc99..047fd7f23706 100644 --- a/drivers/fpga/stratix10-soc.c +++ b/drivers/fpga/stratix10-soc.c @@ -271,7 +271,7 @@ static int s10_send_buf(struct fpga_manager *mgr, const char *buf, size_t count)  }  /* - * Send a FPGA image to privileged layers to write to the FPGA.  When done + * Send an FPGA image to privileged layers to write to the FPGA.  When done   * sending, free all service layer buffers we allocated in write_init.   */  static int s10_ops_write(struct fpga_manager *mgr, const char *buf, @@ -388,13 +388,7 @@ static int s10_ops_write_complete(struct fpga_manager *mgr,  	return ret;  } -static enum fpga_mgr_states s10_ops_state(struct fpga_manager *mgr) -{ -	return FPGA_MGR_STATE_UNKNOWN; -} -  static const struct fpga_manager_ops s10_ops = { -	.state = s10_ops_state,  	.write_init = s10_ops_write_init,  	.write = s10_ops_write,  	.write_complete = s10_ops_write_complete, @@ -454,6 +448,7 @@ static int s10_remove(struct platform_device *pdev)  	struct s10_priv *priv = mgr->priv;  	fpga_mgr_unregister(mgr); +	fpga_mgr_free(mgr);  	stratix10_svc_free_channel(priv->chan);  	return 0; |