i2c: pmcmsp: fix error return from master_xfer

commit 12d9bbc5a7 upstream.

Returning -1 (-EPERM) is not appropriate here, go with -EIO.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Fixes: 1b144df1d7 ("i2c: New PMC MSP71xx TWI bus driver")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Peter Rosin 2018-05-09 21:46:30 +02:00 • committed by Ben Hutchings
commit 42efe1487c