/* Prints the device name together with the bus id if available.  */
int drm_name_info(struct seq_file *m, void *data)
/* Prints the device name together with the bus id if available.  */
int drm_name_info(struct seq_file *m, void *data)
{
	struct drm_info_node *node = (struct drm_info_node *) m->private;
	struct drm_minor *minor = node->minor;
	struct drm_device *dev = minor->dev;
	struct drm_master *master = minor->master;
	if (!master)
		return 0;
	if (master->unique) {
		seq_printf(m, "%s %s %s\n",
			   dev->driver->pci_driver.name,
			   pci_name(dev->pdev), master->unique);
	} else {
		seq_printf(m, "%s %s\n", dev->driver->pci_driver.name,
			   pci_name(dev->pdev));
	}
	return 0;
}