Signed-off-by: Akinobu Mita Cc: Benjamin Herrenschmidt Cc: linux-fbdev-devel@lists.sourceforge.net --- drivers/video/aty/radeon_base.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) Index: 2.6-git/drivers/video/aty/radeon_base.c =================================================================== --- 2.6-git.orig/drivers/video/aty/radeon_base.c +++ 2.6-git/drivers/video/aty/radeon_base.c @@ -70,6 +70,7 @@ #include #include #include +#include #include #include @@ -2098,15 +2099,7 @@ static void radeon_identify_vram(struct static ssize_t radeon_show_one_edid(char *buf, loff_t off, size_t count, const u8 *edid) { - if (off > EDID_LENGTH) - return 0; - - if (off + count > EDID_LENGTH) - count = EDID_LENGTH - off; - - memcpy(buf, edid + off, count); - - return count; + return memory_read_from_buffer(buf, count, &off, edid, EDID_LENGTH); } -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/