Commit 42a1c3a4 authored by Mark Fortescue's avatar Mark Fortescue Committed by David S. Miller

[SPARC]: In cg3 driver, access control reg using byte not long IOs.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b6ba494
...@@ -198,9 +198,9 @@ cg3_blank(int blank, struct fb_info *info) ...@@ -198,9 +198,9 @@ cg3_blank(int blank, struct fb_info *info)
switch (blank) { switch (blank) {
case 0: /* Unblanking */ case 0: /* Unblanking */
val = sbus_readl(&regs->control); val = sbus_readb(&regs->control);
val |= CG3_CR_ENABLE_VIDEO; val |= CG3_CR_ENABLE_VIDEO;
sbus_writel(val, &regs->control); sbus_writeb(val, &regs->control);
par->flags &= ~CG3_FLAG_BLANKED; par->flags &= ~CG3_FLAG_BLANKED;
break; break;
...@@ -208,9 +208,9 @@ cg3_blank(int blank, struct fb_info *info) ...@@ -208,9 +208,9 @@ cg3_blank(int blank, struct fb_info *info)
case 2: /* VESA blank (vsync off) */ case 2: /* VESA blank (vsync off) */
case 3: /* VESA blank (hsync off) */ case 3: /* VESA blank (hsync off) */
case 4: /* Poweroff */ case 4: /* Poweroff */
val = sbus_readl(&regs->control); val = sbus_readb(&regs->control);
val |= CG3_CR_ENABLE_VIDEO; val |= CG3_CR_ENABLE_VIDEO;
sbus_writel(val, &regs->control); sbus_writeb(val, &regs->control);
par->flags |= CG3_FLAG_BLANKED; par->flags |= CG3_FLAG_BLANKED;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment