[ALSA] ad1848 - Fix compilation without CONFIG_PM
authorTakashi Iwai <tiwai@suse.de>
Wed, 30 Nov 2005 09:12:26 +0000 (10:12 +0100)
committerJaroslav Kysela <perex@suse.cz>
Tue, 3 Jan 2006 11:29:59 +0000 (12:29 +0100)
Modules: AD1848 driver

Fix compilation without CONFIG_PM.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/ad1848/ad1848_lib.c

index 83764c9..b78530d 100644 (file)
@@ -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;