+static ssize_t viodev_show_devspec(struct device *dev, char *buf)
+{
+ struct vio_dev *viodev = to_vio_dev(dev);
+ struct device_node *of_node = viodev->archdata;
+
+ return sprintf(buf, "%s\n", of_node->full_name);
+}
+DEVICE_ATTR(devspec, S_IRUSR | S_IRGRP | S_IROTH, viodev_show_devspec, NULL);
+