diff options
author | Benoit Cousson <b-cousson@ti.com> | 2012-11-12 11:44:03 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-11-12 13:28:28 -0800 |
commit | 8de7e37ef0ad7b4dc39498824c48bde2f4d13828 (patch) | |
tree | cd88c5be7b963d83c1e670f33490d2d3c4979b1f /arch/arm/plat-omap | |
parent | edf8dde393f879fc2d8c22d4bc01ff8d37b80e1a (diff) |
ARM: OMAP: debug-leds: Use resource_size instead of hard coded macro
The debug-leds driver should not rely on hard coded macro for
the iomem size but use the resource size instead.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/debug-leds.c | 2 |
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++) { |