Kevin Hart and Ice Cube have ended the monthlong box-office reign of “Star Wars: The Force Awakens.”

Their “Ride Along 2” topped the Martin Luther King Jr. holiday weekend in North America with an estimated $41.5 million over four days, according to studio estimates Monday. The Universal release took in $35.3 million Friday through Sunday.

The comedy sequel, which cost $40 million to make, came in below the original, which made $48.6 million over the same holiday weekend two years ago. But the box office-topping performance of “Ride Along 2” nevertheless lent a timely reminder to Hollywood of the power of diversity at the multiplex, days after the Academy Awards came under criticism for a slate of all-white acting nominees.