]> err.no Git - linux-2.6/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)
commitd05254190dd1a4751284f4a51efb70fcc16c45a4
tree52dd29629ff489eefe42a9361664ddbcabee67b0
parent9b599fb2fc23386dfd2965bf7d10b2b0f628b208
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