diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2014-10-24 13:50:04 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-27 20:42:57 -0400 |
commit | 728384a10b673dbd9819b524852df23142ee2fdd (patch) | |
tree | 82fddd068c107ae8ea6659e70999b80a0a3713ac | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
ARM: pxa: spitz: register spitz-audio device
Register spitz-audio device to be used by ASoC driver to bind ASoC
platform driver. Currently old 'soc-audio' approach is used, which needs
to be replaced with proper device.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 840c3a48e720..962a7f31f596 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -924,6 +924,14 @@ static inline void spitz_i2c_init(void) {} | |||
924 | #endif | 924 | #endif |
925 | 925 | ||
926 | /****************************************************************************** | 926 | /****************************************************************************** |
927 | * Audio devices | ||
928 | ******************************************************************************/ | ||
929 | static inline void spitz_audio_init(void) | ||
930 | { | ||
931 | platform_device_register_simple("spitz-audio", -1, NULL, 0); | ||
932 | } | ||
933 | |||
934 | /****************************************************************************** | ||
927 | * Machine init | 935 | * Machine init |
928 | ******************************************************************************/ | 936 | ******************************************************************************/ |
929 | static void spitz_poweroff(void) | 937 | static void spitz_poweroff(void) |
@@ -970,6 +978,7 @@ static void __init spitz_init(void) | |||
970 | spitz_nor_init(); | 978 | spitz_nor_init(); |
971 | spitz_nand_init(); | 979 | spitz_nand_init(); |
972 | spitz_i2c_init(); | 980 | spitz_i2c_init(); |
981 | spitz_audio_init(); | ||
973 | } | 982 | } |
974 | 983 | ||
975 | static void __init spitz_fixup(struct tag *tags, char **cmdline) | 984 | static void __init spitz_fixup(struct tag *tags, char **cmdline) |