portman2x4.c (d9bc125caf592b7d081021f32ce5b717efdf70c8) portman2x4.c (788c6043335590e0a483fdc18f85b1405a157bf9)
1/*
2 * Driver for Midiman Portman2x4 parallel port midi interface
3 *
4 * Copyright (c) by Levent Guendogdu <levon@feature-it.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

806 snd_printk(KERN_INFO "Portman 2x4 on 0x%lx\n", p->base);
807 return 0;
808
809__err:
810 snd_card_free(card);
811 return err;
812}
813
1/*
2 * Driver for Midiman Portman2x4 parallel port midi interface
3 *
4 * Copyright (c) by Levent Guendogdu <levon@feature-it.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

806 snd_printk(KERN_INFO "Portman 2x4 on 0x%lx\n", p->base);
807 return 0;
808
809__err:
810 snd_card_free(card);
811 return err;
812}
813
814static int snd_portman_remove(struct platform_device *pdev)
814static int __devexit snd_portman_remove(struct platform_device *pdev)
815{
816 struct snd_card *card = platform_get_drvdata(pdev);
817
818 if (card)
819 snd_card_free(card);
820
821 return 0;
822}
823
824
825static struct platform_driver snd_portman_driver = {
826 .probe = snd_portman_probe,
815{
816 struct snd_card *card = platform_get_drvdata(pdev);
817
818 if (card)
819 snd_card_free(card);
820
821 return 0;
822}
823
824
825static struct platform_driver snd_portman_driver = {
826 .probe = snd_portman_probe,
827 .remove = snd_portman_remove,
827 .remove = __dev_exit_p(snd_portman_remove),
828 .driver = {
829 .name = PLATFORM_DRIVER
830 }
831};
832
833/*********************************************************************
834 * module init stuff
835 *********************************************************************/
828 .driver = {
829 .name = PLATFORM_DRIVER
830 }
831};
832
833/*********************************************************************
834 * module init stuff
835 *********************************************************************/
836static void snd_portman_unregister_all(void)
836static void __init_or_module snd_portman_unregister_all(void)
837{
838 int i;
839
840 for (i = 0; i < SNDRV_CARDS; ++i) {
841 if (platform_devices[i]) {
842 platform_device_unregister(platform_devices[i]);
843 platform_devices[i] = NULL;
844 }

--- 32 unchanged lines hidden ---
837{
838 int i;
839
840 for (i = 0; i < SNDRV_CARDS; ++i) {
841 if (platform_devices[i]) {
842 platform_device_unregister(platform_devices[i]);
843 platform_devices[i] = NULL;
844 }

--- 32 unchanged lines hidden ---