sb8.c (f0eef25339f92f7cd4aeea23d9ae97987a5a1e82) sb8.c (788c6043335590e0a483fdc18f85b1405a157bf9)
1/*
2 * Driver for SoundBlaster 1.0/2.0/Pro soundcards and compatible
3 * Copyright (c) by Jaroslav Kysela <perex@suse.cz>
4 *
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

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

78{
79 struct snd_sb8 *acard = (struct snd_sb8 *)card->private_data;
80
81 if (acard == NULL)
82 return;
83 release_and_free_resource(acard->fm_res);
84}
85
1/*
2 * Driver for SoundBlaster 1.0/2.0/Pro soundcards and compatible
3 * Copyright (c) by Jaroslav Kysela <perex@suse.cz>
4 *
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

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

78{
79 struct snd_sb8 *acard = (struct snd_sb8 *)card->private_data;
80
81 if (acard == NULL)
82 return;
83 release_and_free_resource(acard->fm_res);
84}
85
86static int __init snd_sb8_probe(struct platform_device *pdev)
86static int __devinit snd_sb8_probe(struct platform_device *pdev)
87{
88 int dev = pdev->id;
89 struct snd_sb *chip;
90 struct snd_card *card;
91 struct snd_sb8 *acard;
92 struct snd_opl3 *opl3;
93 int err;
94

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

188 platform_set_drvdata(pdev, card);
189 return 0;
190
191 _err:
192 snd_card_free(card);
193 return err;
194}
195
87{
88 int dev = pdev->id;
89 struct snd_sb *chip;
90 struct snd_card *card;
91 struct snd_sb8 *acard;
92 struct snd_opl3 *opl3;
93 int err;
94

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

188 platform_set_drvdata(pdev, card);
189 return 0;
190
191 _err:
192 snd_card_free(card);
193 return err;
194}
195
196static int snd_sb8_remove(struct platform_device *pdev)
196static int __devexit snd_sb8_remove(struct platform_device *pdev)
197{
198 snd_card_free(platform_get_drvdata(pdev));
199 platform_set_drvdata(pdev, NULL);
200 return 0;
201}
202
203#ifdef CONFIG_PM
204static int snd_sb8_suspend(struct platform_device *dev, pm_message_t state)

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

225 return 0;
226}
227#endif
228
229#define SND_SB8_DRIVER "snd_sb8"
230
231static struct platform_driver snd_sb8_driver = {
232 .probe = snd_sb8_probe,
197{
198 snd_card_free(platform_get_drvdata(pdev));
199 platform_set_drvdata(pdev, NULL);
200 return 0;
201}
202
203#ifdef CONFIG_PM
204static int snd_sb8_suspend(struct platform_device *dev, pm_message_t state)

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

225 return 0;
226}
227#endif
228
229#define SND_SB8_DRIVER "snd_sb8"
230
231static struct platform_driver snd_sb8_driver = {
232 .probe = snd_sb8_probe,
233 .remove = snd_sb8_remove,
233 .remove = __devexit_p(snd_sb8_remove),
234#ifdef CONFIG_PM
235 .suspend = snd_sb8_suspend,
236 .resume = snd_sb8_resume,
237#endif
238 .driver = {
239 .name = SND_SB8_DRIVER
240 },
241};

--- 51 unchanged lines hidden ---
234#ifdef CONFIG_PM
235 .suspend = snd_sb8_suspend,
236 .resume = snd_sb8_resume,
237#endif
238 .driver = {
239 .name = SND_SB8_DRIVER
240 },
241};

--- 51 unchanged lines hidden ---