瀏覽代碼

[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 年之前
父節點
當前提交
9d70d91c46
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;
 		return err;
 	}
 	}
 
 
+#ifdef CONFIG_PM
 	chip->suspend = snd_ad1848_suspend;
 	chip->suspend = snd_ad1848_suspend;
 	chip->resume = snd_ad1848_resume;
 	chip->resume = snd_ad1848_resume;
+#endif
 
 
 	*rchip = chip;
 	*rchip = chip;
 	return 0;
 	return 0;