/* Used by a driver to check whether an of_device present in the system is in its list of supported devices.  */
const struct of_device_id* of_match_device(const struct of_device_id *matches, const struct of_device *dev)
/* Used by a driver to check whether an of_device present in the system is in its list of supported devices.  */
const struct of_device_id* of_match_device(const struct of_device_id *matches, const struct of_device *dev)
{
	if (!dev->node)
		return NULL;
	return of_match_node(matches, dev->node);
}