case IOC_NVRAM_GET_OFFSET: {
int part, offset;
- if (!machine_is(powermac))
+ if (_machine != PLATFORM_POWERMAC)
return -EINVAL;
if (copy_from_user(&part, (void __user*)arg, sizeof(part)) != 0)
return -EFAULT;
return 0;
}
#endif /* CONFIG_PPC_PMAC */
- default:
- return -EINVAL;
}
+ return -EINVAL;
}
struct file_operations nvram_fops = {
* in our nvram, as Apple defined partitions use pretty much
* all of the space
*/
- if (machine_is(powermac))
+ if (_machine == PLATFORM_POWERMAC)
return -ENOSPC;
/* see if we have an OS partition that meets our needs.