Skip to content
Commit 65609d32 authored by Dan Carpenter's avatar Dan Carpenter Committed by Wolfram Sang
Browse files

i2c: gxp: fix an error code in probe

This is passing IS_ERR() instead of PTR_ERR() so instead of an error
code it prints and returns the number 1.

Fixes: 4a55ed6f

 ("i2c: Add GXP SoC I2C Controller")
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarNick Hawkins <nick.hawkins@hpe.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 4b3dfb0e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment