diff options
Diffstat (limited to 'drivers/video/riva/fbdev.c')
-rw-r--r-- | drivers/video/riva/fbdev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c index 2788655e6e7d..6a30c0ca1de0 100644 --- a/drivers/video/riva/fbdev.c +++ b/drivers/video/riva/fbdev.c | |||
@@ -1816,14 +1816,13 @@ static int __devinit riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) | |||
1816 | NVTRACE_ENTER(); | 1816 | NVTRACE_ENTER(); |
1817 | dp = pci_device_to_OF_node(pd); | 1817 | dp = pci_device_to_OF_node(pd); |
1818 | for (; dp != NULL; dp = dp->child) { | 1818 | for (; dp != NULL; dp = dp->child) { |
1819 | disptype = (unsigned char *)get_property(dp, "display-type", NULL); | 1819 | disptype = get_property(dp, "display-type", NULL); |
1820 | if (disptype == NULL) | 1820 | if (disptype == NULL) |
1821 | continue; | 1821 | continue; |
1822 | if (strncmp(disptype, "LCD", 3) != 0) | 1822 | if (strncmp(disptype, "LCD", 3) != 0) |
1823 | continue; | 1823 | continue; |
1824 | for (i = 0; propnames[i] != NULL; ++i) { | 1824 | for (i = 0; propnames[i] != NULL; ++i) { |
1825 | pedid = (unsigned char *) | 1825 | pedid = get_property(dp, propnames[i], NULL); |
1826 | get_property(dp, propnames[i], NULL); | ||
1827 | if (pedid != NULL) { | 1826 | if (pedid != NULL) { |
1828 | par->EDID = pedid; | 1827 | par->EDID = pedid; |
1829 | NVTRACE("LCD found.\n"); | 1828 | NVTRACE("LCD found.\n"); |