Skip to content

Commit

Permalink
ALSA: hda - Don't export symbols when built-in kernel
Browse files Browse the repository at this point in the history
The global functions in hda_codec.c and other core parts are only
for HD-audio codec and controller drivers.  When the HD-audio driver
is built in kernel, all stuff have to be statically linked, thus
we don't need any exports.

This patch introduces a conditional macro to do export only
when needed.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Nov 28, 2008
1 parent 645f10c commit ff7a326
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 76 deletions.
4 changes: 2 additions & 2 deletions sound/pci/hda/hda_beep.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
INIT_WORK(&beep->beep_work, &snd_hda_generate_beep);
return 0;
}
EXPORT_SYMBOL_GPL(snd_hda_attach_beep_device);
EXPORT_SYMBOL_HDA(snd_hda_attach_beep_device);

void snd_hda_detach_beep_device(struct hda_codec *codec)
{
Expand All @@ -141,4 +141,4 @@ void snd_hda_detach_beep_device(struct hda_codec *codec)
kfree(beep);
}
}
EXPORT_SYMBOL_GPL(snd_hda_detach_beep_device);
EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device);
Loading

0 comments on commit ff7a326

Please sign in to comment.