Commit 0a266a89 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Linus Torvalds

[PATCH] atyfb: Fix power management

The new atyfb has the return value for the Power Management routine
wrong. This prevents sleep from working on PowerBooks with mach64
video chips. This fixes it.
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8e195fee
......@@ -2015,7 +2015,7 @@ static int aty_power_mgmt(int sleep, struct atyfb_par *par)
}
mdelay(500);
return timeout ? -1 : 0;
return timeout ? 0 : -EIO;
}
static int atyfb_pci_suspend(struct pci_dev *pdev, u32 state)
......
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