diff options
author | Gergo Koteles <soyer@irl.hu> | 2023-12-22 01:34:47 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-12-29 13:42:17 +0100 |
commit | e7aa105657f7f62f54a493480588895cc8a9a1a7 (patch) | |
tree | 96335baf55ffadcfac48ebbfec0b0d54b4ca47d9 /sound/soc/codecs/tas2781-i2c.c | |
parent | ALSA: hda/tas2781: fix typos in comment (diff) | |
download | linux-e7aa105657f7f62f54a493480588895cc8a9a1a7.tar.xz linux-e7aa105657f7f62f54a493480588895cc8a9a1a7.zip |
ALSA: hda/tas2781: move set_drv_data outside tasdevice_init
allow driver specific driver data in tas2781-hda-i2c and tas2781-i2c
Fixes: ef3bcde75d06 ("ASoC: tas2781: Add tas2781 driver")
CC: stable@vger.kernel.org
Signed-off-by: Gergo Koteles <soyer@irl.hu>
Link: https://lore.kernel.org/r/1398bd8bf3e935b1595a99128320e4a1913e210a.1703204848.git.soyer@irl.hu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '')
-rw-r--r-- | sound/soc/codecs/tas2781-i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/tas2781-i2c.c b/sound/soc/codecs/tas2781-i2c.c index 55cd5e3c23a5..917b1c15f71d 100644 --- a/sound/soc/codecs/tas2781-i2c.c +++ b/sound/soc/codecs/tas2781-i2c.c @@ -689,6 +689,8 @@ static int tasdevice_i2c_probe(struct i2c_client *i2c) if (!tas_priv) return -ENOMEM; + dev_set_drvdata(&i2c->dev, tas_priv); + if (ACPI_HANDLE(&i2c->dev)) { acpi_id = acpi_match_device(i2c->dev.driver->acpi_match_table, &i2c->dev); |