aboutsummaryrefslogtreecommitdiffstats
path: root/sound/sparc/dbri.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-01-29 08:41:09 -0500
committerTakashi Iwai <tiwai@suse.de>2014-02-14 02:14:07 -0500
commita2fefc35a99f684b4ba15d243995170fa23bdd7e (patch)
treea9d3cf0de672a70b06f49e9f99b43988508972f0 /sound/sparc/dbri.c
parente7182ac5a3de8836a7b03655a5b8d6b71873fcbc (diff)
ALSA: sparc: Convert to snd_card_new() with a device pointer
Also remove superfluous snd_card_set_dev() calls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/sparc/dbri.c')
-rw-r--r--sound/sparc/dbri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c
index eee7afcae375..be1b1aa96b7e 100644
--- a/sound/sparc/dbri.c
+++ b/sound/sparc/dbri.c
@@ -2615,8 +2615,8 @@ static int dbri_probe(struct platform_device *op)
2615 return -ENODEV; 2615 return -ENODEV;
2616 } 2616 }
2617 2617
2618 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 2618 err = snd_card_new(&op->dev, index[dev], id[dev], THIS_MODULE,
2619 sizeof(struct snd_dbri), &card); 2619 sizeof(struct snd_dbri), &card);
2620 if (err < 0) 2620 if (err < 0)
2621 return err; 2621 return err;
2622 2622