[PATCH 4.14 39/52] extcon: Fix error handling in extcon_dev_register