Liverpool Football Club have confirmed an agreement has been reached with Real Madrid allowing midfielder Nuri Sahin's loan deal to end, so he can join another club with immediate effect.