linux-2.6.15.4/drivers/i2c/busses/i2c-piix4.c: EPERM->EACCES
Hi list,
it was noticed that some driver return EPERM. EPERM indicates no enought privilege to access a function. This will fixit an return (i hope) a 'better' error msg.
re,
walter
Signed-off-by walter harms <[email protected]>
--- linux-2.6.15.4/drivers/i2c/busses/i2c-piix4.c.bak 2006-02-25
13:18:48.000000000 +0100
+++ linux-2.6.15.4/drivers/i2c/busses/i2c-piix4.c 2006-02-25
13:21:58.000000000 +0100
@@ -140,7 +140,7 @@
dev_err(&PIIX4_dev->dev, "IBM Laptop detected; this module "
"may corrupt your serial eeprom! Refusing to load " "module!\n");
- return -EPERM;
+ return -EACCES;
}
/* Determine the address of the SMBus areas */
_______________________________________________
Kernel-janitors mailing list [email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors