Re: [PATCH v3 1/2] ARM: EXYNOS4: Change System MMU devicedefinition

From: Russell King - ARM Linux
Date: Fri Oct 07 2011 - 06:31:22 EST


On Fri, Oct 07, 2011 at 06:56:21PM +0900, Kukjin Kim wrote:
> +#define SYSMMU_RESOURCE(ipname, base, irq) \
> +static struct resource sysmmu_resource_##ipname[] =\
> +{\
> + {\
> + .start = EXYNOS4_PA_SYSMMU_##base,\
> + .end = EXYNOS4_PA_SYSMMU_##base + SZ_4K - 1,\
> + .flags = IORESOURCE_MEM,\
> + }, {\
> + .start = IRQ_SYSMMU_##irq##_0,\
> + .end = IRQ_SYSMMU_##irq##_0,\
> + .flags = IORESOURCE_IRQ,\
> + },\
> }

#define SYSMMU_RESOURCE(ipname, base, irq) \
static struct resource sysmmu_resource_##ipname[] = \
{ \
DEFINE_RES_MEM(EXYNOS4_PA_SYSMMU_##base, SZ_4K), \
DEFINE_RES_IRQ(IRQ_SYSMMU_##irq##_0), \
}

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/