Prechádzať zdrojové kódy

[ALSA] ad1848 - Fix compilation without CONFIG_PM

Modules: AD1848 driver

Fix compilation without CONFIG_PM.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 19 rokov pred
rodič
commit
9d70d91c46
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      sound/isa/ad1848/ad1848_lib.c

+ 2 - 0
sound/isa/ad1848/ad1848_lib.c

@@ -932,8 +932,10 @@ int snd_ad1848_create(struct snd_card *card,
 		return err;
 	}
 
+#ifdef CONFIG_PM
 	chip->suspend = snd_ad1848_suspend;
 	chip->resume = snd_ad1848_resume;
+#endif
 
 	*rchip = chip;
 	return 0;