Robinho has committed his future to AC Milan for another two years after a move to boyhood club Santos fell through.