ARM: 5625/1: fix hard coded 4K resource size in amba bus detection
authorLeo Chen <leochen@broadcom.com>
Tue, 28 Jul 2009 22:34:59 +0000 (23:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 2 Sep 2009 10:21:15 +0000 (11:21 +0100)
commit8afe0b96b36bb967a00658003736ffa97967ee80
tree301b831fe01a7c2e557f1c725f7b9e20e98e78ed
parent98b0979f025e5b98ce8f24e6dc0f9713e6f6c88c
ARM: 5625/1: fix hard coded 4K resource size in amba bus detection

This patch modifies the amba bus detection logic in the kernel
to detect the AMBA devices using the calculated resource
size information rather than the hard coded 4K size.

It also calculates the resource size when request mem region
and release mem region.

Signed-off-by: Leo Chen <leochen@broadcom.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/bus.c