]> Git Repo - linux.git/blobdiff - drivers/fpga/fpga-mgr.c
Merge tag 'drm-next-2019-09-18' of git://anongit.freedesktop.org/drm/drm
[linux.git] / drivers / fpga / fpga-mgr.c
index c3866816456abee4159af6eafe1d0ab107c69a22..e05104f5e40c6a492608644478bdec2ff150c461 100644 (file)
@@ -482,11 +482,6 @@ struct fpga_manager *fpga_mgr_get(struct device *dev)
 }
 EXPORT_SYMBOL_GPL(fpga_mgr_get);
 
-static int fpga_mgr_of_node_match(struct device *dev, const void *data)
-{
-       return dev->of_node == data;
-}
-
 /**
  * of_fpga_mgr_get - Given a device node, get a reference to a fpga mgr.
  *
@@ -498,8 +493,7 @@ struct fpga_manager *of_fpga_mgr_get(struct device_node *node)
 {
        struct device *dev;
 
-       dev = class_find_device(fpga_mgr_class, NULL, node,
-                               fpga_mgr_of_node_match);
+       dev = class_find_device_by_of_node(fpga_mgr_class, node);
        if (!dev)
                return ERR_PTR(-ENODEV);
 
This page took 0.032478 seconds and 4 git commands to generate.