]> Git Repo - linux.git/blobdiff - drivers/fpga/of-fpga-region.c
bpf, sockmap: Avoid returning unneeded EAGAIN when redirecting to self
[linux.git] / drivers / fpga / of-fpga-region.c
index 122286fd255af497ef4b268d49bdfebb485ab495..e405309baadc199d6f5510f4d0c1e8bf4b9f0305 100644 (file)
@@ -22,11 +22,6 @@ static const struct of_device_id fpga_region_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, fpga_region_of_match);
 
-static int fpga_region_of_node_match(struct device *dev, const void *data)
-{
-       return dev->of_node == data;
-}
-
 /**
  * of_fpga_region_find - find FPGA region
  * @np: device node of FPGA Region
@@ -37,7 +32,7 @@ static int fpga_region_of_node_match(struct device *dev, const void *data)
  */
 static struct fpga_region *of_fpga_region_find(struct device_node *np)
 {
-       return fpga_region_class_find(NULL, np, fpga_region_of_node_match);
+       return fpga_region_class_find(NULL, np, device_match_of_node);
 }
 
 /**
@@ -421,7 +416,7 @@ static int of_fpga_region_probe(struct platform_device *pdev)
                goto eprobe_mgr_put;
 
        of_platform_populate(np, fpga_region_of_match, NULL, &region->dev);
-       dev_set_drvdata(dev, region);
+       platform_set_drvdata(pdev, region);
 
        dev_info(dev, "FPGA Region probed\n");
 
This page took 0.035396 seconds and 4 git commands to generate.