diff options
Diffstat (limited to 'drivers/video/matrox/matroxfb_maven.c')
-rw-r--r-- | drivers/video/matrox/matroxfb_maven.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/video/matrox/matroxfb_maven.c b/drivers/video/matrox/matroxfb_maven.c index 4fbb386b2eff..91af9159111f 100644 --- a/drivers/video/matrox/matroxfb_maven.c +++ b/drivers/video/matrox/matroxfb_maven.c | |||
@@ -458,7 +458,7 @@ static void maven_init_TVdata(const struct maven_data* md, struct mavenregs* dat | |||
458 | 0x00, /* 3E written multiple times */ | 458 | 0x00, /* 3E written multiple times */ |
459 | 0x00, /* never written */ | 459 | 0x00, /* never written */ |
460 | }, MATROXFB_OUTPUT_MODE_NTSC, 525, 60 }; | 460 | }, MATROXFB_OUTPUT_MODE_NTSC, 525, 60 }; |
461 | MINFO_FROM(md->primary_head); | 461 | struct matrox_fb_info *minfo = md->primary_head; |
462 | 462 | ||
463 | if (minfo->outputs[1].mode == MATROXFB_OUTPUT_MODE_PAL) | 463 | if (minfo->outputs[1].mode == MATROXFB_OUTPUT_MODE_PAL) |
464 | *data = palregs; | 464 | *data = palregs; |
@@ -741,7 +741,7 @@ static inline int maven_compute_timming(struct maven_data* md, | |||
741 | struct mavenregs* m) { | 741 | struct mavenregs* m) { |
742 | unsigned int tmpi; | 742 | unsigned int tmpi; |
743 | unsigned int a, bv, c; | 743 | unsigned int a, bv, c; |
744 | MINFO_FROM(md->primary_head); | 744 | struct matrox_fb_info *minfo = md->primary_head; |
745 | 745 | ||
746 | m->mode = minfo->outputs[1].mode; | 746 | m->mode = minfo->outputs[1].mode; |
747 | if (m->mode != MATROXFB_OUTPUT_MODE_MONITOR) { | 747 | if (m->mode != MATROXFB_OUTPUT_MODE_MONITOR) { |
@@ -1184,7 +1184,9 @@ static struct matrox_altout maven_altout = { | |||
1184 | 1184 | ||
1185 | static int maven_init_client(struct i2c_client* clnt) { | 1185 | static int maven_init_client(struct i2c_client* clnt) { |
1186 | struct maven_data* md = i2c_get_clientdata(clnt); | 1186 | struct maven_data* md = i2c_get_clientdata(clnt); |
1187 | MINFO_FROM(container_of(clnt->adapter, struct i2c_bit_adapter, adapter)->minfo); | 1187 | struct matrox_fb_info *minfo = container_of(clnt->adapter, |
1188 | struct i2c_bit_adapter, | ||
1189 | adapter)->minfo; | ||
1188 | 1190 | ||
1189 | md->primary_head = minfo; | 1191 | md->primary_head = minfo; |
1190 | md->client = clnt; | 1192 | md->client = clnt; |
@@ -1218,7 +1220,7 @@ static int maven_shutdown_client(struct i2c_client* clnt) { | |||
1218 | struct maven_data* md = i2c_get_clientdata(clnt); | 1220 | struct maven_data* md = i2c_get_clientdata(clnt); |
1219 | 1221 | ||
1220 | if (md->primary_head) { | 1222 | if (md->primary_head) { |
1221 | MINFO_FROM(md->primary_head); | 1223 | struct matrox_fb_info *minfo = md->primary_head; |
1222 | 1224 | ||
1223 | down_write(&minfo->altout.lock); | 1225 | down_write(&minfo->altout.lock); |
1224 | minfo->outputs[1].src = MATROXFB_SRC_NONE; | 1226 | minfo->outputs[1].src = MATROXFB_SRC_NONE; |