[PATCH 4.9 25/35] extcon: Fix error handling in extcon_dev_register