diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-29 15:53:51 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-02 14:21:07 +0100 |
commit | 92b7952da8279189aad352efbf9f2e7001de9524 (patch) | |
tree | 9fbe989ba60bafdeeedae4592ffe6762d155becb /sound/core/hwdep.c | |
parent | e36f014edff70fc02b3d3d79cead1d58f289332e (diff) | |
download | op-kernel-dev-92b7952da8279189aad352efbf9f2e7001de9524.zip op-kernel-dev-92b7952da8279189aad352efbf9f2e7001de9524.tar.gz |
ALSA: Allow to pass the device object to snd_register_device*()
This is a preliminary patch for the further work on embedding struct
device into each sound device instance. It changes
snd_register_device*() helpers to receive the device object directly
for skipping creating a device there.
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/hwdep.c')
-rw-r--r-- | sound/core/hwdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/hwdep.c b/sound/core/hwdep.c index 69459e5..85096a1 100644 --- a/sound/core/hwdep.c +++ b/sound/core/hwdep.c @@ -433,7 +433,8 @@ static int snd_hwdep_dev_register(struct snd_device *device) dev = snd_card_get_device_link(hwdep->card); err = snd_register_device_for_dev(SNDRV_DEVICE_TYPE_HWDEP, hwdep->card, hwdep->device, - &snd_hwdep_f_ops, hwdep, name, dev); + &snd_hwdep_f_ops, hwdep, + NULL, dev, name); if (err < 0) { dev_err(dev, "unable to register hardware dependent device %i:%i\n", |