A driver was charged with assault after plowing into a crowd outside a Hollywood nightclub early Saturday, police said, injuring 30 people, with bystanders attacking and shooting the driver before he was detained by authorities.

The suspect, identified as 29-year-old Fernando Ramirez, was charged on suspicion of assault with a deadly weapon, said Los Angeles Police Department (LAPD) spokeswoman Rosario Cervantes.

Ramirez had been "undergoing surgery" at a local hospital after suffering a gunshot wound from the incident.