diff options
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
-rw-r--r-- | drivers/fpga/fpga-mgr.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c index c3866816456a..e05104f5e40c 100644 --- a/drivers/fpga/fpga-mgr.c +++ b/drivers/fpga/fpga-mgr.c | |||
@@ -482,11 +482,6 @@ struct fpga_manager *fpga_mgr_get(struct device *dev) | |||
482 | } | 482 | } |
483 | EXPORT_SYMBOL_GPL(fpga_mgr_get); | 483 | EXPORT_SYMBOL_GPL(fpga_mgr_get); |
484 | 484 | ||
485 | static int fpga_mgr_of_node_match(struct device *dev, const void *data) | ||
486 | { | ||
487 | return dev->of_node == data; | ||
488 | } | ||
489 | |||
490 | /** | 485 | /** |
491 | * of_fpga_mgr_get - Given a device node, get a reference to a fpga mgr. | 486 | * of_fpga_mgr_get - Given a device node, get a reference to a fpga mgr. |
492 | * | 487 | * |
@@ -498,8 +493,7 @@ struct fpga_manager *of_fpga_mgr_get(struct device_node *node) | |||
498 | { | 493 | { |
499 | struct device *dev; | 494 | struct device *dev; |
500 | 495 | ||
501 | dev = class_find_device(fpga_mgr_class, NULL, node, | 496 | dev = class_find_device_by_of_node(fpga_mgr_class, node); |
502 | fpga_mgr_of_node_match); | ||
503 | if (!dev) | 497 | if (!dev) |
504 | return ERR_PTR(-ENODEV); | 498 | return ERR_PTR(-ENODEV); |
505 | 499 | ||