greybus: ENODEV can be an expected error too
authorAlex Elder <elder@linaro.org>
Wed, 10 Dec 2014 20:50:48 +0000 (14:50 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 10 Dec 2014 22:15:20 +0000 (17:15 -0500)
commit7de3e650fb736bf7c40e20f5dc866c544376119c
tree3aa629317324f41c674b12e40a1f0dca09070583
parentaa26351d0bb5b3ecf9bccacc9b05209b3d2af8ca
greybus: ENODEV can be an expected error too

When probing for i2c devices, a read transfer operation can be used.
In this case, it is expected that some devices will not be found, so
ENODEV is an expected failure.  Don't issue a warning if the return
value is -ENODEV.

Note:  I anticipate we might have to be more precise in identifying
this specific case, but for now this eliminates a bogus warning when
probing i2c devices.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/i2c-gb.c