Commit 037ff543 authored by Jaroslav Kysela's avatar Jaroslav Kysela Committed by Luis Henriques

ALSA: hda: controller code - do not export static functions

commit 37ed3988 upstream.

It is a bad idea to export static functions. GCC for some platforms
shows errors like:

  error: __ksymtab_azx_get_response causes a section type conflict
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent a21f68bd
...@@ -1040,7 +1040,6 @@ static int azx_alloc_cmd_io(struct azx *chip) ...@@ -1040,7 +1040,6 @@ static int azx_alloc_cmd_io(struct azx *chip)
dev_err(chip->card->dev, "cannot allocate CORB/RIRB\n"); dev_err(chip->card->dev, "cannot allocate CORB/RIRB\n");
return err; return err;
} }
EXPORT_SYMBOL_GPL(azx_alloc_cmd_io);
static void azx_init_cmd_io(struct azx *chip) static void azx_init_cmd_io(struct azx *chip)
{ {
...@@ -1105,7 +1104,6 @@ static void azx_init_cmd_io(struct azx *chip) ...@@ -1105,7 +1104,6 @@ static void azx_init_cmd_io(struct azx *chip)
azx_writeb(chip, RIRBCTL, ICH6_RBCTL_DMA_EN | ICH6_RBCTL_IRQ_EN); azx_writeb(chip, RIRBCTL, ICH6_RBCTL_DMA_EN | ICH6_RBCTL_IRQ_EN);
spin_unlock_irq(&chip->reg_lock); spin_unlock_irq(&chip->reg_lock);
} }
EXPORT_SYMBOL_GPL(azx_init_cmd_io);
static void azx_free_cmd_io(struct azx *chip) static void azx_free_cmd_io(struct azx *chip)
{ {
...@@ -1115,7 +1113,6 @@ static void azx_free_cmd_io(struct azx *chip) ...@@ -1115,7 +1113,6 @@ static void azx_free_cmd_io(struct azx *chip)
azx_writeb(chip, CORBCTL, 0); azx_writeb(chip, CORBCTL, 0);
spin_unlock_irq(&chip->reg_lock); spin_unlock_irq(&chip->reg_lock);
} }
EXPORT_SYMBOL_GPL(azx_free_cmd_io);
static unsigned int azx_command_addr(u32 cmd) static unsigned int azx_command_addr(u32 cmd)
{ {
...@@ -1396,7 +1393,6 @@ static int azx_send_cmd(struct hda_bus *bus, unsigned int val) ...@@ -1396,7 +1393,6 @@ static int azx_send_cmd(struct hda_bus *bus, unsigned int val)
else else
return azx_corb_send_cmd(bus, val); return azx_corb_send_cmd(bus, val);
} }
EXPORT_SYMBOL_GPL(azx_send_cmd);
/* get a response */ /* get a response */
static unsigned int azx_get_response(struct hda_bus *bus, static unsigned int azx_get_response(struct hda_bus *bus,
...@@ -1410,7 +1406,6 @@ static unsigned int azx_get_response(struct hda_bus *bus, ...@@ -1410,7 +1406,6 @@ static unsigned int azx_get_response(struct hda_bus *bus,
else else
return azx_rirb_get_response(bus, addr); return azx_rirb_get_response(bus, addr);
} }
EXPORT_SYMBOL_GPL(azx_get_response);
#ifdef CONFIG_SND_HDA_DSP_LOADER #ifdef CONFIG_SND_HDA_DSP_LOADER
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment