linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / char / generic_nvram.c
index 43ff598..1b5e01e 100644 (file)
@@ -22,9 +22,6 @@
 #include <linux/smp_lock.h>
 #include <asm/uaccess.h>
 #include <asm/nvram.h>
-#ifdef CONFIG_PPC_PMAC
-#include <asm/machdep.h>
-#endif
 
 #define NVRAM_SIZE     8192
 
@@ -95,7 +92,7 @@ static int nvram_ioctl(struct inode *inode, struct file *file,
        case IOC_NVRAM_GET_OFFSET: {
                int part, offset;
 
-               if (!machine_is(powermac))
+               if (_machine != _MACH_Pmac)
                        return -EINVAL;
                if (copy_from_user(&part, (void __user*)arg, sizeof(part)) != 0)
                        return -EFAULT;