]> Git Repo - linux.git/blobdiff - drivers/fpga/xilinx-spi.c
net: wan: Add framer framework support
[linux.git] / drivers / fpga / xilinx-spi.c
index b6bcf1d9233d2b46f11942d6220b3965765823ac..e1a227e7ff2ae73a7332976cae007863744ef34c 100644 (file)
@@ -247,13 +247,10 @@ static int xilinx_spi_probe(struct spi_device *spi)
                return dev_err_probe(&spi->dev, PTR_ERR(conf->done),
                                     "Failed to get DONE gpio\n");
 
-       mgr = devm_fpga_mgr_create(&spi->dev,
-                                  "Xilinx Slave Serial FPGA Manager",
-                                  &xilinx_spi_ops, conf);
-       if (!mgr)
-               return -ENOMEM;
-
-       return devm_fpga_mgr_register(&spi->dev, mgr);
+       mgr = devm_fpga_mgr_register(&spi->dev,
+                                    "Xilinx Slave Serial FPGA Manager",
+                                    &xilinx_spi_ops, conf);
+       return PTR_ERR_OR_ZERO(mgr);
 }
 
 #ifdef CONFIG_OF
This page took 0.031063 seconds and 4 git commands to generate.