Toyota is recalling 2.2 million vehicles to correct problems that can cause gas pedals to become stuck in floormats.