diff options
| author | James Morris <james.morris@microsoft.com> | 2018-11-12 09:07:41 -0800 | 
|---|---|---|
| committer | James Morris <james.morris@microsoft.com> | 2018-11-12 09:07:41 -0800 | 
| commit | 26b76320a8a550472bbb8f42257df83fcb8d8df6 (patch) | |
| tree | 8a5b569f4f070bf4971e24e7fccfe3004b8fc4ba /drivers/fpga/ts73xx-fpga.c | |
| parent | f09c296ebf407f98f4ca70892e612b54484bf663 (diff) | |
| parent | ccda4af0f4b92f7b4c308d3acc262f4a7e3affad (diff) | |
Merge tag 'v4.20-rc2' into next-general
Sync to Linux 4.20-rc2 for downstream developers.
Diffstat (limited to 'drivers/fpga/ts73xx-fpga.c')
| -rw-r--r-- | drivers/fpga/ts73xx-fpga.c | 11 | 
1 files changed, 3 insertions, 8 deletions
| diff --git a/drivers/fpga/ts73xx-fpga.c b/drivers/fpga/ts73xx-fpga.c index 08efd1895b1b..dc22a5842609 100644 --- a/drivers/fpga/ts73xx-fpga.c +++ b/drivers/fpga/ts73xx-fpga.c @@ -118,7 +118,6 @@ static int ts73xx_fpga_probe(struct platform_device *pdev)  	struct ts73xx_fpga_priv *priv;  	struct fpga_manager *mgr;  	struct resource *res; -	int ret;  	priv = devm_kzalloc(kdev, sizeof(*priv), GFP_KERNEL);  	if (!priv) @@ -133,18 +132,14 @@ static int ts73xx_fpga_probe(struct platform_device *pdev)  		return PTR_ERR(priv->io_base);  	} -	mgr = fpga_mgr_create(kdev, "TS-73xx FPGA Manager", -			      &ts73xx_fpga_ops, priv); +	mgr = devm_fpga_mgr_create(kdev, "TS-73xx FPGA Manager", +				   &ts73xx_fpga_ops, priv);  	if (!mgr)  		return -ENOMEM;  	platform_set_drvdata(pdev, mgr); -	ret = fpga_mgr_register(mgr); -	if (ret) -		fpga_mgr_free(mgr); - -	return ret; +	return fpga_mgr_register(mgr);  }  static int ts73xx_fpga_remove(struct platform_device *pdev) | 
