linux/drivers/fpga/fpga-mgr.c
/**
 * of_fpga_mgr_get - Given a device node, get a reference to a fpga mgr.
 *
 * @node:	device node
 *
 * Return: fpga manager struct or IS_ERR() condition containing error code.
 */
Given a device node, get a reference to a fpga mgr.
@node:       device node

fpga manager struct or IS_ERR() condition containing error code.
Given a device node get a reference to a fpga mgr . @node : device node fpga manager struct or IS_ERR () condition containing error code .
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);
	if (!dev)
		return ERR_PTR(-ENODEV);
	return __fpga_mgr_get(dev);
}
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 ) ; if ( ! dev ) return ERR_PTR ( - ENODEV ) ; return __fpga_mgr_get ( dev ) ; }
of_fpga_mgr_get - Given a device node, get a reference to a fpga mgr.
of_fpga_mgr_get - Given a device node get a reference to a fpga mgr .