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