diff options
author | Takashi Iwai <tiwai@suse.de> | 2024-08-07 15:34:00 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-08-08 07:47:23 +0200 |
commit | b426b3ba9f6fe17990893c5324727dd217d420b6 (patch) | |
tree | bf2853f7216495b261107b07eeb45df3d4b1e734 /sound/drivers | |
parent | b5557ef985301d7ca2ba08f8e9c22ba4f8c30d5d (diff) |
ALSA: vx_core: Drop unused dev field
The vx_core.dev field has never been set but referred incorrectly at
firmware loading. Pass the proper device pointer from card->dev at
request_firmware(), and drop the unused dev field from vx_core, too.
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240807133452.9424-11-tiwai@suse.de
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/vx/vx_hwdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/vx/vx_hwdep.c b/sound/drivers/vx/vx_hwdep.c index efbb644edba1..74f7ab330c7f 100644 --- a/sound/drivers/vx/vx_hwdep.c +++ b/sound/drivers/vx/vx_hwdep.c @@ -58,7 +58,7 @@ int snd_vx_setup_firmware(struct vx_core *chip) if (! fw_files[chip->type][i]) continue; sprintf(path, "vx/%s", fw_files[chip->type][i]); - if (request_firmware(&fw, path, chip->dev)) { + if (request_firmware(&fw, path, chip->card->dev)) { snd_printk(KERN_ERR "vx: can't load firmware %s\n", path); return -ENOENT; } |