X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=sound%2Fppc%2Fsnd_ps3.c;h=ef2c3f417175aaec7b2cd656e43866f28f9289db;hb=4f5b31c3f29f4351d2740faed3a6c569b800b39d;hp=8f9e3859c37ca70f802fdb5c3f8f25ed75731b8d;hpb=2bea2e4abf2fe8bc7384103aeaad91089109cfba;p=linux-2.6-omap-h63xx.git diff --git a/sound/ppc/snd_ps3.c b/sound/ppc/snd_ps3.c index 8f9e3859c37..ef2c3f41717 100644 --- a/sound/ppc/snd_ps3.c +++ b/sound/ppc/snd_ps3.c @@ -969,11 +969,9 @@ static int __init snd_ps3_driver_probe(struct ps3_system_bus_device *dev) } /* create card instance */ - the_card.card = snd_card_new(index, id, THIS_MODULE, 0); - if (!the_card.card) { - ret = -ENXIO; + ret = snd_card_create(index, id, THIS_MODULE, 0, &the_card.card); + if (ret < 0) goto clean_irq; - } strcpy(the_card.card->driver, "PS3"); strcpy(the_card.card->shortname, "PS3");