From: Aristeu Rozanski This patch changes the error code when dev0:fun1 was hidden by BIOS to one more appropriate. Signed-off-by: Aristeu Rozanski Signed-off-by: Mark Gross Signed-off-by: Doug Thompson Cc: Alan Cox Signed-off-by: Andrew Morton --- drivers/edac/e752x_edac.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/edac/e752x_edac.c~drivers-edac-fix-e752x-correct-return-code drivers/edac/e752x_edac.c --- a/drivers/edac/e752x_edac.c~drivers-edac-fix-e752x-correct-return-code +++ a/drivers/edac/e752x_edac.c @@ -967,7 +967,7 @@ static int e752x_probe1(struct pci_dev * 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); _