]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: pca-platform: propagate error from i2c_pca_add_numbered_bus
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Fri, 30 Jun 2017 00:54:05 +0000 (12:54 +1200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 4 Jul 2017 14:03:42 +0000 (16:03 +0200)
commite9db16c07308737dbb6075aae586706c843812df
tree3821a55a9a7487d6d391842020d2a48b4848aea3
parent8734848495517968cea8105615740e202d0f290d
i2c: pca-platform: propagate error from i2c_pca_add_numbered_bus

Rather than returning -ENODEV if i2c_pca_add_numbered_bus() fails,
propagate the error to aid debugging.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pca-platform.c