diff options
Diffstat (limited to 'drivers/gpu/vga')
-rw-r--r-- | drivers/gpu/vga/Kconfig | 2 | ||||
-rw-r--r-- | drivers/gpu/vga/vga_switcheroo.c | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/vga/Kconfig b/drivers/gpu/vga/Kconfig index f34838839b08..29437eabe095 100644 --- a/drivers/gpu/vga/Kconfig +++ b/drivers/gpu/vga/Kconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | config VGA_ARB | 1 | config VGA_ARB |
2 | bool "VGA Arbitration" if EXPERT | 2 | bool "VGA Arbitration" if EXPERT |
3 | default y | 3 | default y |
4 | depends on PCI | 4 | depends on (PCI && !S390) |
5 | help | 5 | help |
6 | Some "legacy" VGA devices implemented on PCI typically have the same | 6 | Some "legacy" VGA devices implemented on PCI typically have the same |
7 | hard-decoded addresses as they did on ISA. When multiple PCI devices | 7 | hard-decoded addresses as they did on ISA. When multiple PCI devices |
diff --git a/drivers/gpu/vga/vga_switcheroo.c b/drivers/gpu/vga/vga_switcheroo.c index e25cf31faab2..fa60add0ff63 100644 --- a/drivers/gpu/vga/vga_switcheroo.c +++ b/drivers/gpu/vga/vga_switcheroo.c | |||
@@ -18,7 +18,6 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <linux/dmi.h> | ||
22 | #include <linux/seq_file.h> | 21 | #include <linux/seq_file.h> |
23 | #include <linux/uaccess.h> | 22 | #include <linux/uaccess.h> |
24 | #include <linux/fs.h> | 23 | #include <linux/fs.h> |
@@ -376,7 +375,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf, | |||
376 | size_t cnt, loff_t *ppos) | 375 | size_t cnt, loff_t *ppos) |
377 | { | 376 | { |
378 | char usercmd[64]; | 377 | char usercmd[64]; |
379 | const char *pdev_name; | ||
380 | int ret; | 378 | int ret; |
381 | bool delay = false, can_switch; | 379 | bool delay = false, can_switch; |
382 | bool just_mux = false; | 380 | bool just_mux = false; |
@@ -468,7 +466,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf, | |||
468 | goto out; | 466 | goto out; |
469 | 467 | ||
470 | if (can_switch) { | 468 | if (can_switch) { |
471 | pdev_name = pci_name(client->pdev); | ||
472 | ret = vga_switchto_stage1(client); | 469 | ret = vga_switchto_stage1(client); |
473 | if (ret) | 470 | if (ret) |
474 | printk(KERN_ERR "vga_switcheroo: switching failed stage 1 %d\n", ret); | 471 | printk(KERN_ERR "vga_switcheroo: switching failed stage 1 %d\n", ret); |
@@ -540,7 +537,6 @@ fail: | |||
540 | int vga_switcheroo_process_delayed_switch(void) | 537 | int vga_switcheroo_process_delayed_switch(void) |
541 | { | 538 | { |
542 | struct vga_switcheroo_client *client; | 539 | struct vga_switcheroo_client *client; |
543 | const char *pdev_name; | ||
544 | int ret; | 540 | int ret; |
545 | int err = -EINVAL; | 541 | int err = -EINVAL; |
546 | 542 | ||
@@ -555,7 +551,6 @@ int vga_switcheroo_process_delayed_switch(void) | |||
555 | if (!client || !check_can_switch()) | 551 | if (!client || !check_can_switch()) |
556 | goto err; | 552 | goto err; |
557 | 553 | ||
558 | pdev_name = pci_name(client->pdev); | ||
559 | ret = vga_switchto_stage2(client); | 554 | ret = vga_switchto_stage2(client); |
560 | if (ret) | 555 | if (ret) |
561 | printk(KERN_ERR "vga_switcheroo: delayed switching failed stage 2 %d\n", ret); | 556 | printk(KERN_ERR "vga_switcheroo: delayed switching failed stage 2 %d\n", ret); |
@@ -567,4 +562,3 @@ err: | |||
567 | return err; | 562 | return err; |
568 | } | 563 | } |
569 | EXPORT_SYMBOL(vga_switcheroo_process_delayed_switch); | 564 | EXPORT_SYMBOL(vga_switcheroo_process_delayed_switch); |
570 | |||