b093de145b
The previous cleanup with devres may lead to the incorrect release
orders at the probe error handling due to the devres's nature. Until
we register the card, snd_card_free() has to be called at first for
releasing the stuff properly when the driver tries to manage and
release the stuff via card->private_free().
This patch fixes it by calling snd_card_free() on the error from the
probe callback using a new helper function.
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
au88x0.c | ||
au88x0.h | ||
au88x0_a3d.c | ||
au88x0_a3d.h | ||
au88x0_a3ddata.c | ||
au88x0_core.c | ||
au88x0_eq.c | ||
au88x0_eq.h | ||
au88x0_eqdata.c | ||
au88x0_game.c | ||
au88x0_mixer.c | ||
au88x0_mpu401.c | ||
au88x0_pcm.c | ||
au88x0_synth.c | ||
au88x0_wt.h | ||
au88x0_xtalk.c | ||
au88x0_xtalk.h | ||
au8810.c | ||
au8810.h | ||
au8820.c | ||
au8820.h | ||
au8830.c | ||
au8830.h |