macintosh: Convert to using %pOF instead of full_name
[linux-2.6-microblaze.git] / drivers / macintosh / macio_sysfs.c
index 2445274..281f534 100644 (file)
@@ -52,7 +52,7 @@ static ssize_t devspec_show(struct device *dev,
        struct platform_device *ofdev;
 
        ofdev = to_platform_device(dev);
-       return sprintf(buf, "%s\n", ofdev->dev.of_node->full_name);
+       return sprintf(buf, "%pOF\n", ofdev->dev.of_node);
 }
 static DEVICE_ATTR_RO(modalias);
 static DEVICE_ATTR_RO(devspec);