]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/nvram.c
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel...
[linux-2.6-omap-h63xx.git] / drivers / char / nvram.c
index 197cd7a0c33267d9f1becd4b61b8724ac728e804..39f6357e3b5d0a63e432cf0238cc84aba4b8d33f 100644 (file)
 #include <linux/init.h>
 #include <linux/proc_fs.h>
 #include <linux/spinlock.h>
-#include <linux/smp_lock.h>
 
 #include <asm/io.h>
 #include <asm/uaccess.h>
@@ -444,7 +443,7 @@ nvram_init(void)
 
        /* First test whether the driver should init at all */
        if (!CHECK_DRIVER_INIT())
-               return -ENXIO;
+               return -ENODEV;
 
        ret = misc_register(&nvram_dev);
        if (ret) {