]> 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 75f64abf9c817c6dd88e058a9a3b51b12c8eaa09..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);
 }
 
 /**
This page took 0.029982 seconds and 4 git commands to generate.