Commit f9b5a5d1 authored by Aristeu Rozanski's avatar Aristeu Rozanski Committed by Linus Torvalds

drivers/edac: fix e752x correct return code

This patch changes the error code when dev0:fun1 was hidden by BIOS to one
more appropriate.
Signed-off-by: default avatarAristeu Rozanski <aris@ruivo.org>
Signed-off-by: default avatarMark Gross <mark.gross@intel.com>
Signed-off-by: default avatarDoug Thompson <dougthompson@xmission.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3c8bb2cf
......@@ -967,7 +967,7 @@ static int e752x_probe1(struct pci_dev *pdev, int dev_idx)
if (!force_function_unhide && !(stat8 & (1 << 5))) {
printk(KERN_INFO "Contact your BIOS vendor to see if the "
"E752x error registers can be safely un-hidden\n");
return -ENOMEM;
return -ENODEV;
}
stat8 |= (1 << 5);
pci_write_config_byte(pdev, E752X_DEVPRES1, stat8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment