cmi8330.c (f0eef25339f92f7cd4aeea23d9ae97987a5a1e82) cmi8330.c (788c6043335590e0a483fdc18f85b1405a157bf9)
1/*
2 * Driver for C-Media's CMI8330 soundcards.
3 * Copyright (c) by George Talusan <gstalusan@uwaterloo.ca>
4 * http://www.undergrad.math.uwaterloo.ca/~gstalusa
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

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

569 if ((err = snd_cmi8330_probe(card, dev)) < 0) {
570 snd_card_free(card);
571 return err;
572 }
573 platform_set_drvdata(pdev, card);
574 return 0;
575}
576
1/*
2 * Driver for C-Media's CMI8330 soundcards.
3 * Copyright (c) by George Talusan <gstalusan@uwaterloo.ca>
4 * http://www.undergrad.math.uwaterloo.ca/~gstalusa
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

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

569 if ((err = snd_cmi8330_probe(card, dev)) < 0) {
570 snd_card_free(card);
571 return err;
572 }
573 platform_set_drvdata(pdev, card);
574 return 0;
575}
576
577static int snd_cmi8330_nonpnp_remove(struct platform_device *devptr)
577static int __devexit snd_cmi8330_nonpnp_remove(struct platform_device *devptr)
578{
579 snd_card_free(platform_get_drvdata(devptr));
580 platform_set_drvdata(devptr, NULL);
581 return 0;
582}
583
584#ifdef CONFIG_PM
585static int snd_cmi8330_nonpnp_suspend(struct platform_device *dev, pm_message_t state)

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

592 return snd_cmi8330_resume(platform_get_drvdata(dev));
593}
594#endif
595
596#define CMI8330_DRIVER "snd_cmi8330"
597
598static struct platform_driver snd_cmi8330_driver = {
599 .probe = snd_cmi8330_nonpnp_probe,
578{
579 snd_card_free(platform_get_drvdata(devptr));
580 platform_set_drvdata(devptr, NULL);
581 return 0;
582}
583
584#ifdef CONFIG_PM
585static int snd_cmi8330_nonpnp_suspend(struct platform_device *dev, pm_message_t state)

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

592 return snd_cmi8330_resume(platform_get_drvdata(dev));
593}
594#endif
595
596#define CMI8330_DRIVER "snd_cmi8330"
597
598static struct platform_driver snd_cmi8330_driver = {
599 .probe = snd_cmi8330_nonpnp_probe,
600 .remove = snd_cmi8330_nonpnp_remove,
600 .remove = __devexit_p(snd_cmi8330_nonpnp_remove),
601#ifdef CONFIG_PM
602 .suspend = snd_cmi8330_nonpnp_suspend,
603 .resume = snd_cmi8330_nonpnp_resume,
604#endif
605 .driver = {
606 .name = CMI8330_DRIVER
607 },
608};

--- 130 unchanged lines hidden ---
601#ifdef CONFIG_PM
602 .suspend = snd_cmi8330_nonpnp_suspend,
603 .resume = snd_cmi8330_nonpnp_resume,
604#endif
605 .driver = {
606 .name = CMI8330_DRIVER
607 },
608};

--- 130 unchanged lines hidden ---