regulator: Return proper error for regulator_register()