]> git.baikalelectronics.ru Git - kernel.git/commit
atyfb: Properly save PCI state before changing PCI PM level
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Feb 2009 01:06:50 +0000 (12:06 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 8 Feb 2009 18:48:56 +0000 (10:48 -0800)
commit0d7c819186775716b4b648530a417f996677b18e
treea258e2049a245c4d652faa016dd438b2faba5e1e
parenta7e15feb8d4c001eaa0f5a1bc96b0550a7543d52
atyfb: Properly save PCI state before changing PCI PM level

This fixes atyfb 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 slightly cleaned up the code that checks whether we are
running on a PowerMac to do a runtime check instead of a compile
check only, and replaced a deprecated number with the proper
symbolic constant.

Finally, I removed the useless switch to D0 from resume since
the core does it for us.

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