(CNN) Tropical Storm Olivia made landfall Wednesday on Hawaii's island of Maui, passed south of Oahu and weakened as it dumped moderate to heavy rain that flooded roads.

A tropical storm warning was canceled for Oahu and Maui County.

The storm, which also passed over Lanai, had maximum sustained winds of 40 mph and was moving west-southwest at 20 mph, the Central Pacific Hurricane Center said.

The Maui Police Department urged motorists to stay off roads because wind and rain had not subsided.

CNN affiliate KHON said a few homes were evacuated in Maui County. Hawaii DOT tweeted photos of downed trees and flooded roads on the island. A flash-flood warning was in effect for much of Maui.

Read More