]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: npcm7xx: Fix a couple of error codes in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Jun 2020 14:17:27 +0000 (17:17 +0300)
committerWolfram Sang <wsa@kernel.org>
Mon, 8 Jun 2020 20:29:36 +0000 (22:29 +0200)
commita922f34332266c6ef95adb3aa5438ec0a4bfe6f2
tree35aebabf66a40c490a5a0ad4ee5a92a9fd199cdb
parente08fd35310f3f1cb85b8a4a3e0cf629e19f0762b
i2c: npcm7xx: Fix a couple of error codes in probe

The code here is accidentally returning IS_ERR() which is 1 but it
should be returning negative error codes with PTR_ERR().

Fixes: 58fafb9526b2 ("i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-npcm7xx.c