mtpav.c (7fbb8759eff9a348efa5f352ffaa51c364837c4b) mtpav.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52)
1/*
2 * MOTU Midi Timepiece ALSA Main routines
3 * Copyright by Michael T. Mayers (c) Jan 09, 2000
4 * mail: michael@tweakoz.com
5 * Thanks to John Galbraith
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 682 unchanged lines hidden (view full) ---

691/*
692 */
693static int __devinit snd_mtpav_probe(struct platform_device *dev)
694{
695 struct snd_card *card;
696 int err;
697 struct mtpav *mtp_card;
698
1/*
2 * MOTU Midi Timepiece ALSA Main routines
3 * Copyright by Michael T. Mayers (c) Jan 09, 2000
4 * mail: michael@tweakoz.com
5 * Thanks to John Galbraith
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 682 unchanged lines hidden (view full) ---

691/*
692 */
693static int __devinit snd_mtpav_probe(struct platform_device *dev)
694{
695 struct snd_card *card;
696 int err;
697 struct mtpav *mtp_card;
698
699 card = snd_card_new(index, id, THIS_MODULE, sizeof(*mtp_card));
700 if (! card)
701 return -ENOMEM;
699 err = snd_card_create(index, id, THIS_MODULE, sizeof(*mtp_card), &card);
700 if (err < 0)
701 return err;
702
703 mtp_card = card->private_data;
704 spin_lock_init(&mtp_card->spinlock);
705 init_timer(&mtp_card->timer);
706 mtp_card->card = card;
707 mtp_card->irq = -1;
708 mtp_card->share_irq = 0;
709 mtp_card->inmidiport = 0xffffffff;

--- 81 unchanged lines hidden ---
702
703 mtp_card = card->private_data;
704 spin_lock_init(&mtp_card->spinlock);
705 init_timer(&mtp_card->timer);
706 mtp_card->card = card;
707 mtp_card->irq = -1;
708 mtp_card->share_irq = 0;
709 mtp_card->inmidiport = 0xffffffff;

--- 81 unchanged lines hidden ---