usb: mtu3: check return value of devm_extcon_register_notifier()

Check the return value of devm_extcon_register_notifier() and
add error handling.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Chunfeng Yun 2019-03-21 10:53:39 +08:00 • committed by Greg Kroah-Hartman
commit 03d8bfc130
2 changed files with 16 additions and 5 deletions