The speculation over David Villa's future is finally over after Atletico Madrid agreed a deal with Barcelona for the Spaniard's services.