~ubuntu-branches/ubuntu/karmic/linux-ports/karmic

« back to all changes in this revision

Viewing changes to sound/ppc/powermac.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich, Luke Yelavich, Michael Casadevall, Tim Gardner, Upstream Kernel Changes
  • Date: 2009-05-06 18:18:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090506181855-t00baeevpnvd9o7a
Tags: 2.6.30-1.1
[ Luke Yelavich ]
* initial release for karmic
* SAUCE: rebase-ports - adjust for the karmic ports kernel
* SAUCE: rebase-ports - also remove abi dirs/files on rebase
* Update configs after rebase against mainline Jaunty tree
* [Config] Disable CONFIG_BLK_DEV_UB and CONFIG_USB_LIBUSUAL as per
  mainline jaunty
* forward-port patch to drbd for powerpc compilation
* [Config] disable CONFIG_LENOVO_SL_LAPTOP for i386 due to FTBFS
* add .o files found in arch/powerpc/lib to all powerpc kernel header
  packages
* [Config] enable CONFIG_DRM_I915_KMS for i386 as per karmic mainline

[ Michael Casadevall ]

* Disable kgdb on sparc64
* [sparc] [Config] Disable GPIO LEDS
* [ia64] Rename -ia64-generic to -ia64 in line with other architectures
* Correct kernel image path for sparc builds
* [hppa] Fix HPPA config files to build modules for all udebian

Rebase on top of karmic mainline 2.6.30-1.1

[ Tim Gardner ]

* [Config] armel: disable staging drivers, fixes FTBS
* [Config] armel imx51: Disable CONFIG_MTD_NAND_MXC, fixes FTBS

[ Upstream Kernel Changes ]

* mpt2sas: Change reset_type enum to avoid namespace collision.
  Submitted upstream.

* Initial release after rebasing against v2.6.30-rc3

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
/*
52
52
 */
53
53
 
54
 
static int __init snd_pmac_probe(struct platform_device *devptr)
 
54
static int __devinit snd_pmac_probe(struct platform_device *devptr)
55
55
{
56
56
        struct snd_card *card;
57
57
        struct snd_pmac *chip;
58
58
        char *name_ext;
59
59
        int err;
60
60
 
61
 
        card = snd_card_new(index, id, THIS_MODULE, 0);
62
 
        if (card == NULL)
63
 
                return -ENOMEM;
 
61
        err = snd_card_create(index, id, THIS_MODULE, 0, &card);
 
62
        if (err < 0)
 
63
                return err;
64
64
 
65
65
        if ((err = snd_pmac_new(card, &chip)) < 0)
66
66
                goto __error;
110
110
                        goto __error;
111
111
                break;
112
112
        default:
113
 
                snd_printk("unsupported hardware %d\n", chip->model);
 
113
                snd_printk(KERN_ERR "unsupported hardware %d\n", chip->model);
114
114
                err = -EINVAL;
115
115
                goto __error;
116
116
        }