Skip to content

Commit

Permalink
ASoC: SAMSUNG: Fix build error
Browse files Browse the repository at this point in the history
This patch adds <linux/modules.h> to fix following build errors.

sound/soc/codecs/wm8994.c: In function 'wm8994_readable':
sound/soc/codecs/wm8994.c:58: warning: unused variable 'wm8994'
sound/soc/samsung/smdk_wm8994.c:176: error: expected declaration specifiers or '...' before string constant
sound/soc/samsung/smdk_wm8994.c:176: warning: data definition has no type or storage class
sound/soc/samsung/smdk_wm8994.c:176: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
sound/soc/samsung/smdk_wm8994.c:176: warning: function declaration isn't a prototype
sound/soc/samsung/smdk_wm8994.c:177: error: expected declaration specifiers or '...' before string constant

Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Boojin Kim authored and Mark Brown committed Nov 22, 2011
1 parent 5c4b2aa commit 3d94a2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/samsung/smdk_wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include "../codecs/wm8994.h"
#include <sound/pcm_params.h>
#include <linux/module.h>

/*
* Default CFG switch settings to use this driver:
Expand Down

0 comments on commit 3d94a2a

Please sign in to comment.