]> Git Repo - linux.git/blobdiff - drivers/fpga/versal-fpga.c
x86/kaslr: Expose and use the end of the physical memory address space
[linux.git] / drivers / fpga / versal-fpga.c
index 5b0dda304bd25cc770471f50f1b5a2332f41c838..3710e8f01be25de67e79338a963cc825ab2fea5f 100644 (file)
@@ -48,18 +48,15 @@ static int versal_fpga_probe(struct platform_device *pdev)
        struct fpga_manager *mgr;
        int ret;
 
-       ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
+       ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(44));
        if (ret < 0) {
                dev_err(dev, "no usable DMA configuration\n");
                return ret;
        }
 
-       mgr = devm_fpga_mgr_create(dev, "Xilinx Versal FPGA Manager",
-                                  &versal_fpga_ops, NULL);
-       if (!mgr)
-               return -ENOMEM;
-
-       return devm_fpga_mgr_register(dev, mgr);
+       mgr = devm_fpga_mgr_register(dev, "Xilinx Versal FPGA Manager",
+                                    &versal_fpga_ops, NULL);
+       return PTR_ERR_OR_ZERO(mgr);
 }
 
 static const struct of_device_id versal_fpga_of_match[] = {
This page took 0.031891 seconds and 4 git commands to generate.