]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/fpga/fpga-bridge.c
Merge branch 'work.mount3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux.git] / drivers / fpga / fpga-bridge.c
index 80bd8f1b2aa60fc06b8f132898105fab9c14c939..4bab9028940a812cebf6dfbf0ad17785042c4287 100644 (file)
@@ -19,11 +19,6 @@ static struct class *fpga_bridge_class;
 /* Lock for adding/removing bridges to linked lists*/
 static spinlock_t bridge_list_lock;
 
-static int fpga_bridge_of_node_match(struct device *dev, const void *data)
-{
-       return dev->of_node == data;
-}
-
 /**
  * fpga_bridge_enable - Enable transactions on the bridge
  *
@@ -104,8 +99,7 @@ struct fpga_bridge *of_fpga_bridge_get(struct device_node *np,
 {
        struct device *dev;
 
-       dev = class_find_device(fpga_bridge_class, NULL, np,
-                               fpga_bridge_of_node_match);
+       dev = class_find_device_by_of_node(fpga_bridge_class, np);
        if (!dev)
                return ERR_PTR(-ENODEV);