]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/fpga/dfl-fme-region.c
Merge tag 'mtd/for-4.20' of git://git.infradead.org/linux-mtd
[linux.git] / drivers / fpga / dfl-fme-region.c
index 0b7e19c27c6ddc0beea61064c377d070e0a1b540..51a5ac2293a72c27e17bec80fa768986eb2751e4 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/fpga/fpga-mgr.h>
 #include <linux/fpga/fpga-region.h>
 
 #include "dfl-fme-pr.h"
@@ -66,9 +67,10 @@ static int fme_region_probe(struct platform_device *pdev)
 static int fme_region_remove(struct platform_device *pdev)
 {
        struct fpga_region *region = dev_get_drvdata(&pdev->dev);
+       struct fpga_manager *mgr = region->mgr;
 
        fpga_region_unregister(region);
-       fpga_mgr_put(region->mgr);
+       fpga_mgr_put(mgr);
 
        return 0;
 }