[PATCH 5.10 100/126] extcon: Fix error handling in extcon_dev_register