From: Takashi Iwai Date: Wed, 30 Nov 2005 09:12:26 +0000 (+0100) Subject: [ALSA] ad1848 - Fix compilation without CONFIG_PM X-Git-Tag: v2.6.16-rc1~474^2~22^2~3^2~55 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d70d91c4663d580bd18317dac3c7dc3bee79480;p=linux-2.6 [ALSA] ad1848 - Fix compilation without CONFIG_PM Modules: AD1848 driver Fix compilation without CONFIG_PM. Signed-off-by: Takashi Iwai --- diff --git a/sound/isa/ad1848/ad1848_lib.c b/sound/isa/ad1848/ad1848_lib.c index 83764c9415..b78530d7ea 100644 --- a/sound/isa/ad1848/ad1848_lib.c +++ b/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;