mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
vga_switcheroo: Remove unbalanced pci_enable_device
This is unbalanced and probably more fitting for the client to take care of. Remove it. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
508c8d60bd
commit
d4a3b10c16
1 changed files with 0 additions and 6 deletions
|
@ -215,7 +215,6 @@ static int vga_switchoff(struct vga_switcheroo_client *client)
|
||||||
/* stage one happens before delay */
|
/* stage one happens before delay */
|
||||||
static int vga_switchto_stage1(struct vga_switcheroo_client *new_client)
|
static int vga_switchto_stage1(struct vga_switcheroo_client *new_client)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
int i;
|
int i;
|
||||||
struct vga_switcheroo_client *active = NULL;
|
struct vga_switcheroo_client *active = NULL;
|
||||||
|
|
||||||
|
@ -231,11 +230,6 @@ static int vga_switchto_stage1(struct vga_switcheroo_client *new_client)
|
||||||
if (!active)
|
if (!active)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* power up the first device */
|
|
||||||
ret = pci_enable_device(new_client->pdev);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
if (new_client->pwr_state == VGA_SWITCHEROO_OFF)
|
if (new_client->pwr_state == VGA_SWITCHEROO_OFF)
|
||||||
vga_switchon(new_client);
|
vga_switchon(new_client);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue