aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-omap/debug-leds.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/debug-leds.c')
-rw-r--r--arch/arm/plat-omap/debug-leds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/debug-leds.c b/arch/arm/plat-omap/debug-leds.c
index c43ea21f33b..aa7ebc6bcd6 100644
--- a/arch/arm/plat-omap/debug-leds.c
+++ b/arch/arm/plat-omap/debug-leds.c
@@ -111,7 +111,7 @@ static int fpga_probe(struct platform_device *pdev)
if (!iomem)
return -ENODEV;
- fpga = ioremap(iomem->start, H2P2_DBG_FPGA_SIZE);
+ fpga = ioremap(iomem->start, resource_size(iomem));
__raw_writew(0xff, &fpga->leds);
for (i = 0; i < ARRAY_SIZE(dbg_leds); i++) {