usb: typec: anx7411: Fix error return code in anx7411_i2c_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 21 Jul 2022 07:12:01 +0000 (15:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2022 12:27:53 +0000 (14:27 +0200)
commitd183a57cad920087a770c45721e98f45feea0fde
tree1400019578d8095179482dfdb899d205b490c56a
parent5cda657679f8fcb2896e4ac0aa8e231f12f9fb04
usb: typec: anx7411: Fix error return code in anx7411_i2c_probe()

Add mising error return code when failed to get interrupt or failed
to register psy.

Fixes: fe6d8a9c8e64 ("usb: typec: anx7411: Add Analogix PD ANX7411 support")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220721071201.269344-3-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/anx7411.c