mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 17:14:40 +08:00
drm/i915: use register name when disabling VGA
Just noticed this while verifying the VGA disable code. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
2911a35b2e
commit
3fdcf43192
@ -9522,7 +9522,7 @@ static void i915_disable_vga(struct drm_device *dev)
|
||||
vga_reg = VGACNTRL;
|
||||
|
||||
vga_get_uninterruptible(dev->pdev, VGA_RSRC_LEGACY_IO);
|
||||
outb(1, VGA_SR_INDEX);
|
||||
outb(SR01, VGA_SR_INDEX);
|
||||
sr1 = inb(VGA_SR_DATA);
|
||||
outb(sr1 | 1<<5, VGA_SR_DATA);
|
||||
vga_put(dev->pdev, VGA_RSRC_LEGACY_IO);
|
||||
|
Loading…
Reference in New Issue
Block a user