]> git.baikalelectronics.ru Git - kernel.git/commit
sm501: fixup allocation code to be 64bit resource compliant
authorBen Dooks <ben-linux@fluff.org>
Thu, 24 Jul 2008 04:31:37 +0000 (21:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:40 +0000 (10:47 -0700)
commit342c2fe41c2e8c3eb9f626165e493c159430c36b
tree52dd29629ff489eefe42a9361664ddbcabee67b0
parent4fd73a02cc7d72d6b9c1deb4e3de253047443cac
sm501: fixup allocation code to be 64bit resource compliant

As pointed out by Andrew Morton, we have a problem when setting the 64bit
resources option.  Alter the allocation routines to remove the need to use
the start and end fields, use the proper HEAD_PANEL/HEAD_CRT and update
the comments.

Note, we also fix the bug where we failed to check the size of the
CRT memory allocation.

[akpm@linux-foundation.org: cleanup]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/sm501fb.c