]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
aty128fb: Properly save PCI state before changing PCI PM level
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Feb 2009 01:06:51 +0000 (12:06 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 8 Feb 2009 18:48:56 +0000 (10:48 -0800)
commitb746bb77627cba62765ff2afeec9cc9a8cbb926c
treed6a1b84104e0891d1d39d2968db3194e26b392d0
parentb7468168631e03c70105491a0236137868613436
aty128fb: Properly save PCI state before changing PCI PM level

This fixes aty128fb to properly save the PCI config space -before- it
potentially switches the PM state of the chip. This avoids a
warning with the new PM core and is the right thing to do anyway.

I also replaced the hand-coded switch to D2 with a call to the
genericc pci_set_power_state() and removed the code that switches it
back to D0 since the generic code is doing that for us nowadays.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/aty/aty128fb.c