]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/5200: Fix size to request_mem_region() call
authorGrant Likely <grant.likely@secretlab.ca>
Fri, 18 Jan 2013 01:32:02 +0000 (01:32 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 6 Feb 2013 11:06:37 +0000 (11:06 +0000)
commit74ef2ca8116d17bb18eafe57a1b06968d996d190
tree71347bd08d9ba9658c89cc0ff7a22f5c3c9c1e16
parent2fc6ff4168f2b438c78f7ff8d8f3e8add154406d
powerpc/5200: Fix size to request_mem_region() call

The Bestcomm driver requests a memory region larger than the one
described in the device tree. This is due to an extra undocumented field
in the bestcomm register structure. This hasn't been a problem up to
now, but there is a patch pending to make the DT platform_bus support
code use platform_device_add() which tightens the rules and provides
extra checks for drivers to stay within the specified register regions.

Alternately, I could have removed the extra field from the structure,
but I'm not sure if it is still needed for resume to work. Better be
safe and leave it in.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Anatolij Gustschin <agust@denx.de>
arch/powerpc/sysdev/bestcomm/bestcomm.c