aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-02-01 23:34:14 -0500
committerGrant Likely <grant.likely@secretlab.ca>2010-02-09 10:33:00 -0500
commit71a157e8edca55198e808f8561dd49017a54ee34 (patch)
treea78185ea8204f1e375d88545235ba3d4937ebfaf /drivers/gpu
parent89751a7cb70a20f0d604dd7c4be29dd7b0011718 (diff)
of: add 'of_' prefix to machine_is_compatible()
machine is compatible is an OF-specific call. It should have the of_ prefix to protect the global namespace. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_combios.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c
index 579c8920e081..13826a534065 100644
--- a/drivers/gpu/drm/radeon/radeon_combios.c
+++ b/drivers/gpu/drm/radeon/radeon_combios.c
@@ -1280,47 +1280,47 @@ bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev)
1280 rdev->mode_info.connector_table = radeon_connector_table; 1280 rdev->mode_info.connector_table = radeon_connector_table;
1281 if (rdev->mode_info.connector_table == CT_NONE) { 1281 if (rdev->mode_info.connector_table == CT_NONE) {
1282#ifdef CONFIG_PPC_PMAC 1282#ifdef CONFIG_PPC_PMAC
1283 if (machine_is_compatible("PowerBook3,3")) { 1283 if (of_machine_is_compatible("PowerBook3,3")) {
1284 /* powerbook with VGA */ 1284 /* powerbook with VGA */
1285 rdev->mode_info.connector_table = CT_POWERBOOK_VGA; 1285 rdev->mode_info.connector_table = CT_POWERBOOK_VGA;
1286 } else if (machine_is_compatible("PowerBook3,4") || 1286 } else if (of_machine_is_compatible("PowerBook3,4") ||
1287 machine_is_compatible("PowerBook3,5")) { 1287 of_machine_is_compatible("PowerBook3,5")) {
1288 /* powerbook with internal tmds */ 1288 /* powerbook with internal tmds */
1289 rdev->mode_info.connector_table = CT_POWERBOOK_INTERNAL; 1289 rdev->mode_info.connector_table = CT_POWERBOOK_INTERNAL;
1290 } else if (machine_is_compatible("PowerBook5,1") || 1290 } else if (of_machine_is_compatible("PowerBook5,1") ||
1291 machine_is_compatible("PowerBook5,2") || 1291 of_machine_is_compatible("PowerBook5,2") ||
1292 machine_is_compatible("PowerBook5,3") || 1292 of_machine_is_compatible("PowerBook5,3") ||
1293 machine_is_compatible("PowerBook5,4") || 1293 of_machine_is_compatible("PowerBook5,4") ||
1294 machine_is_compatible("PowerBook5,5")) { 1294 of_machine_is_compatible("PowerBook5,5")) {
1295 /* powerbook with external single link tmds (sil164) */ 1295 /* powerbook with external single link tmds (sil164) */
1296 rdev->mode_info.connector_table = CT_POWERBOOK_EXTERNAL; 1296 rdev->mode_info.connector_table = CT_POWERBOOK_EXTERNAL;
1297 } else if (machine_is_compatible("PowerBook5,6")) { 1297 } else if (of_machine_is_compatible("PowerBook5,6")) {
1298 /* powerbook with external dual or single link tmds */ 1298 /* powerbook with external dual or single link tmds */
1299 rdev->mode_info.connector_table = CT_POWERBOOK_EXTERNAL; 1299 rdev->mode_info.connector_table = CT_POWERBOOK_EXTERNAL;
1300 } else if (machine_is_compatible("PowerBook5,7") || 1300 } else if (of_machine_is_compatible("PowerBook5,7") ||
1301 machine_is_compatible("PowerBook5,8") || 1301 of_machine_is_compatible("PowerBook5,8") ||
1302 machine_is_compatible("PowerBook5,9")) { 1302 of_machine_is_compatible("PowerBook5,9")) {
1303 /* PowerBook6,2 ? */ 1303 /* PowerBook6,2 ? */
1304 /* powerbook with external dual link tmds (sil1178?) */ 1304 /* powerbook with external dual link tmds (sil1178?) */
1305 rdev->mode_info.connector_table = CT_POWERBOOK_EXTERNAL; 1305 rdev->mode_info.connector_table = CT_POWERBOOK_EXTERNAL;
1306 } else if (machine_is_compatible("PowerBook4,1") || 1306 } else if (of_machine_is_compatible("PowerBook4,1") ||
1307 machine_is_compatible("PowerBook4,2") || 1307 of_machine_is_compatible("PowerBook4,2") ||
1308 machine_is_compatible("PowerBook4,3") || 1308 of_machine_is_compatible("PowerBook4,3") ||
1309 machine_is_compatible("PowerBook6,3") || 1309 of_machine_is_compatible("PowerBook6,3") ||
1310 machine_is_compatible("PowerBook6,5") || 1310 of_machine_is_compatible("PowerBook6,5") ||
1311 machine_is_compatible("PowerBook6,7")) { 1311 of_machine_is_compatible("PowerBook6,7")) {
1312 /* ibook */ 1312 /* ibook */
1313 rdev->mode_info.connector_table = CT_IBOOK; 1313 rdev->mode_info.connector_table = CT_IBOOK;
1314 } else if (machine_is_compatible("PowerMac4,4")) { 1314 } else if (of_machine_is_compatible("PowerMac4,4")) {
1315 /* emac */ 1315 /* emac */
1316 rdev->mode_info.connector_table = CT_EMAC; 1316 rdev->mode_info.connector_table = CT_EMAC;
1317 } else if (machine_is_compatible("PowerMac10,1")) { 1317 } else if (of_machine_is_compatible("PowerMac10,1")) {
1318 /* mini with internal tmds */ 1318 /* mini with internal tmds */
1319 rdev->mode_info.connector_table = CT_MINI_INTERNAL; 1319 rdev->mode_info.connector_table = CT_MINI_INTERNAL;
1320 } else if (machine_is_compatible("PowerMac10,2")) { 1320 } else if (of_machine_is_compatible("PowerMac10,2")) {
1321 /* mini with external tmds */ 1321 /* mini with external tmds */
1322 rdev->mode_info.connector_table = CT_MINI_EXTERNAL; 1322 rdev->mode_info.connector_table = CT_MINI_EXTERNAL;
1323 } else if (machine_is_compatible("PowerMac12,1")) { 1323 } else if (of_machine_is_compatible("PowerMac12,1")) {
1324 /* PowerMac8,1 ? */ 1324 /* PowerMac8,1 ? */
1325 /* imac g5 isight */ 1325 /* imac g5 isight */
1326 rdev->mode_info.connector_table = CT_IMAC_G5_ISIGHT; 1326 rdev->mode_info.connector_table = CT_IMAC_G5_ISIGHT;