opl3sa2.c (d9bc125caf592b7d081021f32ce5b717efdf70c8) | opl3sa2.c (788c6043335590e0a483fdc18f85b1405a157bf9) |
---|---|
1/* 2 * Driver for Yamaha OPL3-SA[2,3] soundcards 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 --- 905 unchanged lines hidden (view full) --- 914 if ((err = snd_opl3sa2_probe(card, dev)) < 0) { 915 snd_card_free(card); 916 return err; 917 } 918 platform_set_drvdata(pdev, card); 919 return 0; 920} 921 | 1/* 2 * Driver for Yamaha OPL3-SA[2,3] soundcards 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 --- 905 unchanged lines hidden (view full) --- 914 if ((err = snd_opl3sa2_probe(card, dev)) < 0) { 915 snd_card_free(card); 916 return err; 917 } 918 platform_set_drvdata(pdev, card); 919 return 0; 920} 921 |
922static int snd_opl3sa2_nonpnp_remove(struct platform_device *devptr) | 922static int __devexit snd_opl3sa2_nonpnp_remove(struct platform_device *devptr) |
923{ 924 snd_card_free(platform_get_drvdata(devptr)); 925 platform_set_drvdata(devptr, NULL); 926 return 0; 927} 928 929#ifdef CONFIG_PM 930static int snd_opl3sa2_nonpnp_suspend(struct platform_device *dev, pm_message_t state) --- 6 unchanged lines hidden (view full) --- 937 return snd_opl3sa2_resume(platform_get_drvdata(dev)); 938} 939#endif 940 941#define OPL3SA2_DRIVER "snd_opl3sa2" 942 943static struct platform_driver snd_opl3sa2_nonpnp_driver = { 944 .probe = snd_opl3sa2_nonpnp_probe, | 923{ 924 snd_card_free(platform_get_drvdata(devptr)); 925 platform_set_drvdata(devptr, NULL); 926 return 0; 927} 928 929#ifdef CONFIG_PM 930static int snd_opl3sa2_nonpnp_suspend(struct platform_device *dev, pm_message_t state) --- 6 unchanged lines hidden (view full) --- 937 return snd_opl3sa2_resume(platform_get_drvdata(dev)); 938} 939#endif 940 941#define OPL3SA2_DRIVER "snd_opl3sa2" 942 943static struct platform_driver snd_opl3sa2_nonpnp_driver = { 944 .probe = snd_opl3sa2_nonpnp_probe, |
945 .remove = snd_opl3sa2_nonpnp_remove, | 945 .remove = __devexit( snd_opl3sa2_nonpnp_remove), |
946#ifdef CONFIG_PM 947 .suspend = snd_opl3sa2_nonpnp_suspend, 948 .resume = snd_opl3sa2_nonpnp_resume, 949#endif 950 .driver = { 951 .name = OPL3SA2_DRIVER 952 }, 953}; --- 69 unchanged lines hidden --- | 946#ifdef CONFIG_PM 947 .suspend = snd_opl3sa2_nonpnp_suspend, 948 .resume = snd_opl3sa2_nonpnp_resume, 949#endif 950 .driver = { 951 .name = OPL3SA2_DRIVER 952 }, 953}; --- 69 unchanged lines hidden --- |