diff options
author | Andrew Morton <akpm@osdl.org> | 2006-10-04 05:16:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 10:55:24 -0400 |
commit | 0271eb947db2704a0ff8be68d72915ab021d1ead (patch) | |
tree | 5fe268cd25a9541b9d71470c07cda062ef27c1c1 /drivers | |
parent | 237fead619984cc48818fe12ee0ceada3f55b012 (diff) |
[PATCH] fbdev: riva warning fix
drivers/video/riva/fbdev.c: In function `riva_get_EDID_OF':
drivers/video/riva/fbdev.c:1846: warning: assignment discards qualifiers from pointer target type
This code is being bad: copying a pointer to read-only OF data into a
non-const pointer.
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/riva/fbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c index b120896c8ab4..a433cc78ef90 100644 --- a/drivers/video/riva/fbdev.c +++ b/drivers/video/riva/fbdev.c | |||
@@ -1843,7 +1843,7 @@ static int __devinit riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) | |||
1843 | for (i = 0; propnames[i] != NULL; ++i) { | 1843 | for (i = 0; propnames[i] != NULL; ++i) { |
1844 | pedid = get_property(dp, propnames[i], NULL); | 1844 | pedid = get_property(dp, propnames[i], NULL); |
1845 | if (pedid != NULL) { | 1845 | if (pedid != NULL) { |
1846 | par->EDID = pedid; | 1846 | par->EDID = (unsigned char *)pedid; |
1847 | NVTRACE("LCD found.\n"); | 1847 | NVTRACE("LCD found.\n"); |
1848 | return 1; | 1848 | return 1; |
1849 | } | 1849 | } |