diff options
author | Tony Lindgren <tony@atomide.com> | 2019-10-04 09:06:41 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2019-10-04 09:06:41 -0700 |
commit | 1913c7f3fc2514e09262baf2267a82dfdb215c39 (patch) | |
tree | 1aaf6970e99c1f5535776f9fd9067f0d811b2532 /drivers/fpga/fpga-mgr.c | |
parent | f90ec6cdf674248dcad85bf9af6e064bf472b841 (diff) | |
parent | 96d49bbfe6c1a6bb43ccd00fb87aca100e32e5e2 (diff) |
Merge tag 'fix-missing-panels' into fixes
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) } 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); |