Skip to content

Commit cafe9c6

Browse files
simontrimmertiwai
authored andcommitted
ALSA: hda: cs35l56: Set the init_done flag before component_add()
Initialization is completed before adding the component as that can start the process of the device binding and trigger actions that check init_done. Signed-off-by: Simon Trimmer <[email protected]> Signed-off-by: Richard Fitzgerald <[email protected]> Fixes: 73cfbfa ("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier") Message-ID: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 3c95316 commit cafe9c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/pci/hda/cs35l56_hda.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,14 +1045,14 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int hid, int id)
10451045
pm_runtime_mark_last_busy(cs35l56->base.dev);
10461046
pm_runtime_enable(cs35l56->base.dev);
10471047

1048+
cs35l56->base.init_done = true;
1049+
10481050
ret = component_add(cs35l56->base.dev, &cs35l56_hda_comp_ops);
10491051
if (ret) {
10501052
dev_err(cs35l56->base.dev, "Register component failed: %d\n", ret);
10511053
goto pm_err;
10521054
}
10531055

1054-
cs35l56->base.init_done = true;
1055-
10561056
return 0;
10571057

10581058
pm_err:

0 commit comments

Comments
 (0)