]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/kernel/of_device.c
sh: Add cpu-features header to asm/Kbuild.
[linux-2.6-omap-h63xx.git] / arch / powerpc / kernel / of_device.c
index 8a06724e029e4fd1f8cee862b95bd7101839ed20..e921514e655bd45a2b96438151e2a2f07d66b10e 100644 (file)
@@ -109,9 +109,7 @@ int of_device_register(struct of_device *ofdev)
        if (rc)
                return rc;
 
-       device_create_file(&ofdev->dev, &dev_attr_devspec);
-
-       return 0;
+       return device_create_file(&ofdev->dev, &dev_attr_devspec);
 }
 
 void of_device_unregister(struct of_device *ofdev)