diff options
| author | Luiz Otavio O Souza <loos@FreeBSD.org> | 2014-05-31 14:38:05 +0000 |
|---|---|---|
| committer | Luiz Otavio O Souza <loos@FreeBSD.org> | 2014-05-31 14:38:05 +0000 |
| commit | 34aa2211e75f765b204792d764ac2beb324ac3ec (patch) | |
| tree | 65f709e08a8b824673f49fe4e67db127cffebe88 /sys/dev | |
| parent | e72f32cd0f68bc663a73cec715c68f11cde8d11e (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/iicbus/iic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/iicbus/iic.c b/sys/dev/iicbus/iic.c index 55084e997b20..16d113ee6c78 100644 --- a/sys/dev/iicbus/iic.c +++ b/sys/dev/iicbus/iic.c @@ -322,6 +322,12 @@ iicioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *t case I2CRSTCARD: error = iicbus_reset(parent, IIC_UNKNOWN, 0, NULL); + /* + * Ignore IIC_ENOADDR as it only means we have a master-only + * controller. + */ + if (error == IIC_ENOADDR) + error = 0; break; case I2CWRITE: |
