diff options
Diffstat (limited to 'sound/isa/adlib.c')
| -rw-r--r-- | sound/isa/adlib.c | 15 | 
1 files changed, 6 insertions, 9 deletions
diff --git a/sound/isa/adlib.c b/sound/isa/adlib.c index 7465ae036e0..120c524bb2a 100644 --- a/sound/isa/adlib.c +++ b/sound/isa/adlib.c @@ -18,7 +18,7 @@ MODULE_LICENSE("GPL");  static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;  static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; -static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; +static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE;  static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;  module_param_array(index, int, NULL, 0444); @@ -30,7 +30,7 @@ MODULE_PARM_DESC(enable, "Enable " CRD_NAME " soundcard.");  module_param_array(port, long, NULL, 0444);  MODULE_PARM_DESC(port, "Port # for " CRD_NAME " driver."); -static int __devinit snd_adlib_match(struct device *dev, unsigned int n) +static int snd_adlib_match(struct device *dev, unsigned int n)  {  	if (!enable[n])  		return 0; @@ -47,13 +47,13 @@ static void snd_adlib_free(struct snd_card *card)  	release_and_free_resource(card->private_data);  } -static int __devinit snd_adlib_probe(struct device *dev, unsigned int n) +static int snd_adlib_probe(struct device *dev, unsigned int n)  {  	struct snd_card *card;  	struct snd_opl3 *opl3;  	int error; -	error = snd_card_create(index[n], id[n], THIS_MODULE, 0, &card); +	error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card);  	if (error < 0) {  		dev_err(dev, "could not create card\n");  		return error; @@ -83,8 +83,6 @@ static int __devinit snd_adlib_probe(struct device *dev, unsigned int n)  		goto out;  	} -	snd_card_set_dev(card, dev); -  	error = snd_card_register(card);  	if (error < 0) {  		dev_err(dev, "could not register card\n"); @@ -98,17 +96,16 @@ out:	snd_card_free(card);  	return error;  } -static int __devexit snd_adlib_remove(struct device *dev, unsigned int n) +static int snd_adlib_remove(struct device *dev, unsigned int n)  {  	snd_card_free(dev_get_drvdata(dev)); -	dev_set_drvdata(dev, NULL);  	return 0;  }  static struct isa_driver snd_adlib_driver = {  	.match		= snd_adlib_match,  	.probe		= snd_adlib_probe, -	.remove		= __devexit_p(snd_adlib_remove), +	.remove		= snd_adlib_remove,  	.driver		= {  		.name	= DEV_NAME  | 
