mirror of https://gitee.com/openkylin/linux.git
[PATCH] powerpc: remove warning in EEH code
Remove warning in eeh code about mixed variables and code. Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
5388fb1025
commit
ea183a957a
|
@ -208,10 +208,11 @@ static void __eeh_mark_slot (struct device_node *dn, int mode_flag)
|
||||||
{
|
{
|
||||||
while (dn) {
|
while (dn) {
|
||||||
if (PCI_DN(dn)) {
|
if (PCI_DN(dn)) {
|
||||||
PCI_DN(dn)->eeh_mode |= mode_flag;
|
|
||||||
|
|
||||||
/* Mark the pci device driver too */
|
/* Mark the pci device driver too */
|
||||||
struct pci_dev *dev = PCI_DN(dn)->pcidev;
|
struct pci_dev *dev = PCI_DN(dn)->pcidev;
|
||||||
|
|
||||||
|
PCI_DN(dn)->eeh_mode |= mode_flag;
|
||||||
|
|
||||||
if (dev && dev->driver)
|
if (dev && dev->driver)
|
||||||
dev->error_state = pci_channel_io_frozen;
|
dev->error_state = pci_channel_io_frozen;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue