From: Benjamin Herrenschmidt Date: Thu, 5 Feb 2009 01:06:50 +0000 (+1100) Subject: atyfb: Properly save PCI state before changing PCI PM level X-Git-Tag: v2.6.29-rc4~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7468168631e03c70105491a0236137868613436;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed