diff options
Diffstat (limited to 'drivers/video/aty/radeon_monitor.c')
-rw-r--r-- | drivers/video/aty/radeon_monitor.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/video/aty/radeon_monitor.c b/drivers/video/aty/radeon_monitor.c index ec7a5d4c76da..38c7dbf8c151 100644 --- a/drivers/video/aty/radeon_monitor.c +++ b/drivers/video/aty/radeon_monitor.c | |||
@@ -65,12 +65,12 @@ static int __devinit radeon_parse_montype_prop(struct device_node *dp, u8 **out_ | |||
65 | static char *propnames[] = { "DFP,EDID", "LCD,EDID", "EDID", | 65 | static char *propnames[] = { "DFP,EDID", "LCD,EDID", "EDID", |
66 | "EDID1", "EDID2", NULL }; | 66 | "EDID1", "EDID2", NULL }; |
67 | const u8 *pedid = NULL; | 67 | const u8 *pedid = NULL; |
68 | const u8 *pmt; | 68 | const u8 *pmt = NULL; |
69 | u8 *tmp; | 69 | u8 *tmp; |
70 | int i, mt = MT_NONE; | 70 | int i, mt = MT_NONE; |
71 | 71 | ||
72 | RTRACE("analyzing OF properties...\n"); | 72 | RTRACE("analyzing OF properties...\n"); |
73 | pmt = of_get_property(dp, "display-type", NULL); | 73 | pmt = get_property(dp, "display-type", NULL); |
74 | if (!pmt) | 74 | if (!pmt) |
75 | return MT_NONE; | 75 | return MT_NONE; |
76 | RTRACE("display-type: %s\n", pmt); | 76 | RTRACE("display-type: %s\n", pmt); |
@@ -89,7 +89,7 @@ static int __devinit radeon_parse_montype_prop(struct device_node *dp, u8 **out_ | |||
89 | } | 89 | } |
90 | 90 | ||
91 | for (i = 0; propnames[i] != NULL; ++i) { | 91 | for (i = 0; propnames[i] != NULL; ++i) { |
92 | pedid = of_get_property(dp, propnames[i], NULL); | 92 | pedid = get_property(dp, propnames[i], NULL); |
93 | if (pedid != NULL) | 93 | if (pedid != NULL) |
94 | break; | 94 | break; |
95 | } | 95 | } |
@@ -98,10 +98,9 @@ static int __devinit radeon_parse_montype_prop(struct device_node *dp, u8 **out_ | |||
98 | * single-head cards have hdno == -1 and skip this step | 98 | * single-head cards have hdno == -1 and skip this step |
99 | */ | 99 | */ |
100 | if (pedid == NULL && dp->parent && (hdno != -1)) | 100 | if (pedid == NULL && dp->parent && (hdno != -1)) |
101 | pedid = of_get_property(dp->parent, | 101 | pedid = get_property(dp->parent, (hdno == 0) ? "EDID1" : "EDID2", NULL); |
102 | (hdno == 0) ? "EDID1" : "EDID2", NULL); | ||
103 | if (pedid == NULL && dp->parent && (hdno == 0)) | 102 | if (pedid == NULL && dp->parent && (hdno == 0)) |
104 | pedid = of_get_property(dp->parent, "EDID", NULL); | 103 | pedid = get_property(dp->parent, "EDID", NULL); |
105 | if (pedid == NULL) | 104 | if (pedid == NULL) |
106 | return mt; | 105 | return mt; |
107 | 106 | ||
@@ -131,7 +130,7 @@ static int __devinit radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_ | |||
131 | do { | 130 | do { |
132 | if (!dp) | 131 | if (!dp) |
133 | return MT_NONE; | 132 | return MT_NONE; |
134 | pname = of_get_property(dp, "name", NULL); | 133 | pname = get_property(dp, "name", NULL); |
135 | if (!pname) | 134 | if (!pname) |
136 | return MT_NONE; | 135 | return MT_NONE; |
137 | len = strlen(pname); | 136 | len = strlen(pname); |