File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ snd_wavefront_probe (struct snd_card *card, int dev)
589
589
return snd_card_register (card );
590
590
}
591
591
592
- static int __init snd_wavefront_nonpnp_probe (struct platform_device * pdev )
592
+ static int __devinit snd_wavefront_nonpnp_probe (struct platform_device * pdev )
593
593
{
594
594
int dev = pdev -> id ;
595
595
struct snd_card * card ;
@@ -637,6 +637,7 @@ static struct platform_driver snd_wavefront_driver = {
637
637
638
638
639
639
#ifdef CONFIG_PNP
640
+ static unsigned int __devinitdata wavefront_pnp_devices ;
640
641
641
642
static int __devinit snd_wavefront_pnp_detect (struct pnp_card_link * pcard ,
642
643
const struct pnp_card_device_id * pid )
@@ -670,6 +671,7 @@ static int __devinit snd_wavefront_pnp_detect(struct pnp_card_link *pcard,
670
671
671
672
pnp_set_card_drvdata (pcard , card );
672
673
dev ++ ;
674
+ wavefront_pnp_devices ++ ;
673
675
return 0 ;
674
676
}
675
677
@@ -729,10 +731,10 @@ static int __init alsa_card_wavefront_init(void)
729
731
}
730
732
731
733
#ifdef CONFIG_PNP
732
- i = pnp_register_card_driver (& wavefront_pnpc_driver );
733
- if (i >= 0 ) {
734
+ err = pnp_register_card_driver (& wavefront_pnpc_driver );
735
+ if (! err ) {
734
736
pnp_registered = 1 ;
735
- cards += i ;
737
+ cards += wavefront_pnp_devices ;
736
738
}
737
739
#endif
738
740
You can’t perform that action at this time.
0 commit comments