Hamlin cleared, will race at Talladega