diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c index e0af6cd7ba4f7cef79dcd0e643230188ebf42ee2..af7a20dc6e0934e0945c95e21c7b1eb07e11fdd1 100644 --- a/arch/powerpc/kernel/iommu.c +++ b/arch/powerpc/kernel/iommu.c @@ -127,8 +127,7 @@ static ssize_t fail_iommu_store(struct device *dev, return count; } -static DEVICE_ATTR(fail_iommu, S_IRUGO|S_IWUSR, fail_iommu_show, - fail_iommu_store); +static DEVICE_ATTR_RW(fail_iommu); static int fail_iommu_bus_notify(struct notifier_block *nb, unsigned long action, void *data)