From 2885c2e4bb2e3b228f72b30138b39beadb085b61 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Sun, 8 Apr 2012 20:48:39 +0000 Subject: [PATCH] intpm: return only SMB bus error codes from SMB methods PR: kern/25733 MFC after: 5 days --- sys/pci/intpm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c index 375a56fbe6b8..1e92909dc330 100644 --- a/sys/pci/intpm.c +++ b/sys/pci/intpm.c @@ -272,7 +272,7 @@ intsmb_callback(device_t dev, int index, void *data) case SMB_RELEASE_BUS: break; default: - error = EINVAL; + error = SMB_EINVAL; } return (error); @@ -519,7 +519,7 @@ intsmb_quick(device_t dev, u_char slave, int how) data |= LSB; break; default: - return (EINVAL); + return (SMB_EINVAL); } INTSMB_LOCK(sc); @@ -774,7 +774,7 @@ intsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) } *count = nread; } else - error = EIO; + error = SMB_EBUSERR; } INTSMB_UNLOCK(sc); return (error);