[PATCH 5.4 017/165] regulator: core: fix regulator_register() error paths to properly release rdev