提交 12f288bf 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[ALSA] hda-intel - Remove invalid __devinit

Some functions in hda_codec.c are called from patch ops, which are
kept in the codec instance even after initialization.  Thus they
shouldn't be marked as __devinit.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 350a29b4
...@@ -1325,8 +1325,7 @@ static struct snd_kcontrol_new dig_mixes[] = { ...@@ -1325,8 +1325,7 @@ static struct snd_kcontrol_new dig_mixes[] = {
* *
* Returns 0 if successful, or a negative error code. * Returns 0 if successful, or a negative error code.
*/ */
int __devinit snd_hda_create_spdif_out_ctls(struct hda_codec *codec, int snd_hda_create_spdif_out_ctls(struct hda_codec *codec, hda_nid_t nid)
hda_nid_t nid)
{ {
int err; int err;
struct snd_kcontrol *kctl; struct snd_kcontrol *kctl;
...@@ -1424,8 +1423,7 @@ static struct snd_kcontrol_new dig_in_ctls[] = { ...@@ -1424,8 +1423,7 @@ static struct snd_kcontrol_new dig_in_ctls[] = {
* *
* Returns 0 if successful, or a negative error code. * Returns 0 if successful, or a negative error code.
*/ */
int __devinit snd_hda_create_spdif_in_ctls(struct hda_codec *codec, int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid)
hda_nid_t nid)
{ {
int err; int err;
struct snd_kcontrol *kctl; struct snd_kcontrol *kctl;
...@@ -1895,9 +1893,9 @@ int __devinit snd_hda_build_pcms(struct hda_bus *bus) ...@@ -1895,9 +1893,9 @@ int __devinit snd_hda_build_pcms(struct hda_bus *bus)
* *
* If no entries are matching, the function returns a negative value. * If no entries are matching, the function returns a negative value.
*/ */
int __devinit snd_hda_check_board_config(struct hda_codec *codec, int snd_hda_check_board_config(struct hda_codec *codec,
int num_configs, const char **models, int num_configs, const char **models,
const struct snd_pci_quirk *tbl) const struct snd_pci_quirk *tbl)
{ {
if (codec->bus->modelname && models) { if (codec->bus->modelname && models) {
int i; int i;
...@@ -1947,8 +1945,7 @@ int __devinit snd_hda_check_board_config(struct hda_codec *codec, ...@@ -1947,8 +1945,7 @@ int __devinit snd_hda_check_board_config(struct hda_codec *codec,
* *
* Returns 0 if successful, or a negative error code. * Returns 0 if successful, or a negative error code.
*/ */
int __devinit snd_hda_add_new_ctls(struct hda_codec *codec, int snd_hda_add_new_ctls(struct hda_codec *codec, struct snd_kcontrol_new *knew)
struct snd_kcontrol_new *knew)
{ {
int err; int err;
...@@ -2224,7 +2221,7 @@ int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, ...@@ -2224,7 +2221,7 @@ int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec,
* Helper for automatic ping configuration * Helper for automatic ping configuration
*/ */
static int __devinit is_in_nid_list(hda_nid_t nid, hda_nid_t *list) static int is_in_nid_list(hda_nid_t nid, hda_nid_t *list)
{ {
for (; *list; list++) for (; *list; list++)
if (*list == nid) if (*list == nid)
...@@ -2275,9 +2272,9 @@ static void sort_pins_by_sequence(hda_nid_t * pins, short * sequences, ...@@ -2275,9 +2272,9 @@ static void sort_pins_by_sequence(hda_nid_t * pins, short * sequences,
* The digital input/output pins are assigned to dig_in_pin and dig_out_pin, * The digital input/output pins are assigned to dig_in_pin and dig_out_pin,
* respectively. * respectively.
*/ */
int __devinit snd_hda_parse_pin_def_config(struct hda_codec *codec, int snd_hda_parse_pin_def_config(struct hda_codec *codec,
struct auto_pin_cfg *cfg, struct auto_pin_cfg *cfg,
hda_nid_t *ignore_nids) hda_nid_t *ignore_nids)
{ {
hda_nid_t nid, nid_start; hda_nid_t nid, nid_start;
int nodes; int nodes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册