diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-28 09:17:06 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-28 09:22:02 -0500 |
commit | ff7a3267368634e368ebaac68d5e3abf129edd1d (patch) | |
tree | 588571dbc3f6017c6fa26990f5349ca5f63c1f98 /sound/pci/hda/hda_beep.c | |
parent | 645f10c1ac7f733b224eaf97634edf9b20e2370e (diff) |
ALSA: hda - Don't export symbols when built-in kernel
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>
Diffstat (limited to 'sound/pci/hda/hda_beep.c')
-rw-r--r-- | sound/pci/hda/hda_beep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c index e6cc9463667a..e00421c0d8ba 100644 --- a/sound/pci/hda/hda_beep.c +++ b/sound/pci/hda/hda_beep.c | |||
@@ -128,7 +128,7 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) | |||
128 | INIT_WORK(&beep->beep_work, &snd_hda_generate_beep); | 128 | INIT_WORK(&beep->beep_work, &snd_hda_generate_beep); |
129 | return 0; | 129 | return 0; |
130 | } | 130 | } |
131 | EXPORT_SYMBOL_GPL(snd_hda_attach_beep_device); | 131 | EXPORT_SYMBOL_HDA(snd_hda_attach_beep_device); |
132 | 132 | ||
133 | void snd_hda_detach_beep_device(struct hda_codec *codec) | 133 | void snd_hda_detach_beep_device(struct hda_codec *codec) |
134 | { | 134 | { |
@@ -141,4 +141,4 @@ void snd_hda_detach_beep_device(struct hda_codec *codec) | |||
141 | kfree(beep); | 141 | kfree(beep); |
142 | } | 142 | } |
143 | } | 143 | } |
144 | EXPORT_SYMBOL_GPL(snd_hda_detach_beep_device); | 144 | EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device); |