ALSA: PCI: Replace CONFIG_PM with CONFIG_PM_SLEEP
Otherwise we may get compile warnings due to unused functions. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -46,7 +46,7 @@ static int get_firmware(const struct firmware **fw_entry,
|
||||
int err;
|
||||
char name[30];
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
if (chip->fw_cache[fw_index]) {
|
||||
DE_ACT(("firmware requested: %s is cached\n", card_fw[fw_index].data));
|
||||
*fw_entry = chip->fw_cache[fw_index];
|
||||
@@ -59,7 +59,7 @@ static int get_firmware(const struct firmware **fw_entry,
|
||||
err = request_firmware(fw_entry, name, pci_device(chip));
|
||||
if (err < 0)
|
||||
snd_printk(KERN_ERR "get_firmware(): Firmware not available (%d)\n", err);
|
||||
#ifdef CONFIG_PM
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
else
|
||||
chip->fw_cache[fw_index] = *fw_entry;
|
||||
#endif
|
||||
@@ -70,7 +70,7 @@ static int get_firmware(const struct firmware **fw_entry,
|
||||
|
||||
static void free_firmware(const struct firmware *fw_entry)
|
||||
{
|
||||
#ifdef CONFIG_PM
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
DE_ACT(("firmware not released (kept in cache)\n"));
|
||||
#else
|
||||
release_firmware(fw_entry);
|
||||
@@ -82,7 +82,7 @@ static void free_firmware(const struct firmware *fw_entry)
|
||||
|
||||
static void free_firmware_cache(struct echoaudio *chip)
|
||||
{
|
||||
#ifdef CONFIG_PM
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 8 ; i++)
|
||||
@@ -2203,7 +2203,7 @@ ctl_error:
|
||||
|
||||
|
||||
|
||||
#if defined(CONFIG_PM)
|
||||
#if defined(CONFIG_PM_SLEEP)
|
||||
|
||||
static int snd_echo_suspend(struct device *dev)
|
||||
{
|
||||
@@ -2313,7 +2313,7 @@ static SIMPLE_DEV_PM_OPS(snd_echo_pm, snd_echo_suspend, snd_echo_resume);
|
||||
#define SND_ECHO_PM_OPS &snd_echo_pm
|
||||
#else
|
||||
#define SND_ECHO_PM_OPS NULL
|
||||
#endif /* CONFIG_PM */
|
||||
#endif /* CONFIG_PM_SLEEP */
|
||||
|
||||
|
||||
static void __devexit snd_echo_remove(struct pci_dev *pci)
|
||||
|
||||
@@ -449,7 +449,7 @@ struct echoaudio {
|
||||
volatile u32 __iomem *dsp_registers; /* DSP's register base */
|
||||
u32 active_mask; /* Chs. active mask or
|
||||
* punks out */
|
||||
#ifdef CONFIG_PM
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
const struct firmware *fw_cache[8]; /* Cached firmwares */
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user