mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
ALSA: fix section mismatch in the sound_core
The __exit cleanup_oss_soundcore() is called from the __init init_soundcore(). This causes section mismatch and breaks kernel's linking on sparc64. Remove the __exit attribute from the cleanup_oss_soundcore(). Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
d8009882e9
commit
de30d36be1
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
#ifdef CONFIG_SOUND_OSS_CORE
|
||||
static int __init init_oss_soundcore(void);
|
||||
static void __exit cleanup_oss_soundcore(void);
|
||||
static void cleanup_oss_soundcore(void);
|
||||
#else
|
||||
static inline int init_oss_soundcore(void) { return 0; }
|
||||
static inline void cleanup_oss_soundcore(void) { }
|
||||
|
@ -574,7 +574,7 @@ int soundcore_open(struct inode *inode, struct file *file)
|
|||
|
||||
MODULE_ALIAS_CHARDEV_MAJOR(SOUND_MAJOR);
|
||||
|
||||
static void __exit cleanup_oss_soundcore(void)
|
||||
static void cleanup_oss_soundcore(void)
|
||||
{
|
||||
/* We have nothing to really do here - we know the lists must be
|
||||
empty */
|
||||
|
|
Loading…
Reference in a new issue