[PATCH 5.4 58/74] extcon: Fix error handling in extcon_dev_register