mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
ALSA: hda: Drop export of snd_hdac_bus_add/remove_device()
snd_hdac_bus_add_device() and snd_hdac_remove_device() are called only internally in hda-core. Let's drop the exports of them and move the declarations into local.h. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ee5f85d929
commit
53eff75e5f
3 changed files with 5 additions and 5 deletions
|
@ -374,9 +374,6 @@ int snd_hdac_bus_exec_verb_unlocked(struct hdac_bus *bus, unsigned int addr,
|
||||||
unsigned int cmd, unsigned int *res);
|
unsigned int cmd, unsigned int *res);
|
||||||
void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex);
|
void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex);
|
||||||
|
|
||||||
int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec);
|
|
||||||
void snd_hdac_bus_remove_device(struct hdac_bus *bus,
|
|
||||||
struct hdac_device *codec);
|
|
||||||
void snd_hdac_bus_process_unsol_events(struct work_struct *work);
|
void snd_hdac_bus_process_unsol_events(struct work_struct *work);
|
||||||
|
|
||||||
static inline void snd_hdac_codec_link_up(struct hdac_device *codec)
|
static inline void snd_hdac_codec_link_up(struct hdac_device *codec)
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/export.h>
|
#include <linux/export.h>
|
||||||
#include <sound/hdaudio.h>
|
#include <sound/hdaudio.h>
|
||||||
|
#include "local.h"
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
|
|
||||||
static const struct hdac_bus_ops default_ops = {
|
static const struct hdac_bus_ops default_ops = {
|
||||||
|
@ -196,7 +197,6 @@ int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec)
|
||||||
bus->num_codecs++;
|
bus->num_codecs++;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(snd_hdac_bus_add_device);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* snd_hdac_bus_remove_device - Remove a codec from bus
|
* snd_hdac_bus_remove_device - Remove a codec from bus
|
||||||
|
@ -215,7 +215,6 @@ void snd_hdac_bus_remove_device(struct hdac_bus *bus,
|
||||||
bus->num_codecs--;
|
bus->num_codecs--;
|
||||||
flush_work(&bus->unsol_work);
|
flush_work(&bus->unsol_work);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(snd_hdac_bus_remove_device);
|
|
||||||
|
|
||||||
#ifdef CONFIG_SND_HDA_ALIGNED_MMIO
|
#ifdef CONFIG_SND_HDA_ALIGNED_MMIO
|
||||||
/* Helpers for aligned read/write of mmio space, for Tegra */
|
/* Helpers for aligned read/write of mmio space, for Tegra */
|
||||||
|
|
|
@ -33,4 +33,8 @@ int hda_widget_sysfs_reinit(struct hdac_device *codec, hda_nid_t start_nid,
|
||||||
int num_nodes);
|
int num_nodes);
|
||||||
void hda_widget_sysfs_exit(struct hdac_device *codec);
|
void hda_widget_sysfs_exit(struct hdac_device *codec);
|
||||||
|
|
||||||
|
int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec);
|
||||||
|
void snd_hdac_bus_remove_device(struct hdac_bus *bus,
|
||||||
|
struct hdac_device *codec);
|
||||||
|
|
||||||
#endif /* __HDAC_LOCAL_H */
|
#endif /* __HDAC_LOCAL_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue