[PATCH 08/15] powerpc/iommu: use permission-specific DEVICE_ATTR variants
Michael Ellerman
mpe at ellerman.id.au
Mon Oct 31 17:06:58 AEDT 2016
Julia Lawall <Julia.Lawall at lip6.fr> writes:
> diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
> index 5f202a5..32f18b5 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);
Acked-by: Michael Ellerman <mpe at ellerman.id.au> (powerpc)
cheers
More information about the Linuxppc-dev
mailing list