Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALSA: nm256: Don't call card private_free at probe error path
The card destructor of nm256 driver does merely stopping the running streams, and it's superfluous for the probe error handling. Moreover, calling this via the previous devres change would lead to another problem due to the reverse call order. This patch moves the setup of the private_free callback after the card registration, so that it can be used only after fully set up. Fixes: c19935f ("ALSA: nm256: Allocate resources with device-managed APIs") Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
- Loading branch information