diff options
author | Igor Murzov <e-mail@date.by> | 2012-10-25 09:09:01 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-20 01:06:29 -0500 |
commit | 9499c82da27cf4ce7e919fc26bd26187a71fe664 (patch) | |
tree | 16921288b415cc4274291e72be8d4ed8841aa948 /drivers/gpu/vga | |
parent | 83ef7777aa5ffbf08a71e14f0a127de315293113 (diff) |
vga_switcheroo: Drop unused include and unused variables.
Signed-off-by: Igor Murzov <e-mail@date.by>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/vga')
-rw-r--r-- | drivers/gpu/vga/vga_switcheroo.c | 6 |
1 files changed, 0 insertions, 6 deletions
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 | |||