Skip to content
Commit b2e11c6b authored by Dave Stevenson's avatar Dave Stevenson Committed by Phil Elwell
Browse files

media: dw9807-vcm: The device is not active initially



The probe calls pm_runtime_set_active in the probe, but
has never called dw9807_vcm_resume.
Without a regulator this causes no issue as it just
instructs the VCM to move to the idle position and power
down. With a regulator the pm_runtime_idle calls
dw9807_vcm_suspend, and we get a mismatch in the regulator framework.

Make the active state conditional on having a regulator.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.com>
parent ed77faf0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment