diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-28 01:22:18 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-28 01:22:18 -0500 |
commit | 11cd41b893895c76a8f9bee9467f4b0869b5eeb3 (patch) | |
tree | 3f1f5f9cf8e3ac3cb79974b394fe9931b0f3161d /sound/pci/hda/hda_intel.c | |
parent | 30d72e9f614e7bd76e28d4d92bd54d90a96905bb (diff) |
ALSA: hda - Fix build error with CONFIG_SND_HDA_POWER_SAVE
Moved power_save field initialization inside a proper ifdef
to fix a build error without CONFIG_SND_HDA_POWER_SAVE.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index f17ccd51335..8aee322313e 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -1233,12 +1233,12 @@ static int __devinit azx_codec_create(struct azx *chip, const char *model, | |||
1233 | memset(&bus_temp, 0, sizeof(bus_temp)); | 1233 | memset(&bus_temp, 0, sizeof(bus_temp)); |
1234 | bus_temp.private_data = chip; | 1234 | bus_temp.private_data = chip; |
1235 | bus_temp.modelname = model; | 1235 | bus_temp.modelname = model; |
1236 | bus_temp.power_save = &power_save; | ||
1237 | bus_temp.pci = chip->pci; | 1236 | bus_temp.pci = chip->pci; |
1238 | bus_temp.ops.command = azx_send_cmd; | 1237 | bus_temp.ops.command = azx_send_cmd; |
1239 | bus_temp.ops.get_response = azx_get_response; | 1238 | bus_temp.ops.get_response = azx_get_response; |
1240 | bus_temp.ops.attach_pcm = azx_attach_pcm_stream; | 1239 | bus_temp.ops.attach_pcm = azx_attach_pcm_stream; |
1241 | #ifdef CONFIG_SND_HDA_POWER_SAVE | 1240 | #ifdef CONFIG_SND_HDA_POWER_SAVE |
1241 | bus_temp.power_save = &power_save; | ||
1242 | bus_temp.ops.pm_notify = azx_power_notify; | 1242 | bus_temp.ops.pm_notify = azx_power_notify; |
1243 | #endif | 1243 | #endif |
1244 | 1244 | ||