[PATCH] ep93xx: use DEFINE_RES_* helpers
Mika Westerberg
mika.westerberg at iki.fi
Thu Aug 4 14:22:48 EDT 2011
On Tue, Aug 02, 2011 at 04:29:05PM -0700, H Hartley Sweeten wrote:
> @@ -590,11 +543,7 @@ static struct platform_device ep93xx_pwm0_device = {
> };
>
> static struct resource ep93xx_pwm1_resource[] = {
> - {
> - .start = EP93XX_PWM_PHYS_BASE + 0x20,
> - .end = EP93XX_PWM_PHYS_BASE + 0x30 - 1,
> - .flags = IORESOURCE_MEM,
> - },
> + DEFINE_RES_MEM(EP93XX_PWM_PHYS_BASE + 0x10, 0x10),
Should this be
DEFINE_RES_MEM(EP93XX_PWM_PHYS_BASE + 0x20, 0x10),
Otherwise
Reviewed-by: Mika Westerberg <mika.westerberg at iki.fi>
More information about the linux-arm-kernel
mailing list