/* device_to_hwpath - Populates the hwpath corresponding to the given device.  */
void device_to_hwpath(struct device *dev, struct hardware_path *path)
/* device_to_hwpath - Populates the hwpath corresponding to the given device.  */
void device_to_hwpath(struct device *dev, struct hardware_path *path)
{
	struct parisc_device *padev;
	if (dev->bus == &parisc_bus_type) {
		padev = to_parisc_device(dev);
		get_node_path(dev->parent, path);
		path->mod = padev->hw_path;
	} else if (is_pci_dev(dev)) {
		get_node_path(dev, path);
	}
}