/* * ALSA SoC TLV320AIC23 codec driver SPI interface * * Author: Arun KS, * Copyright: (C) 2008 Mistral Solutions Pvt Ltd., * * Based on sound/soc/codecs/wm8731.c by Richard Purdie * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include #include #include #include #include "tlv320aic23.h" static int aic23_spi_probe(struct spi_device *spi) { int ret; struct regmap *regmap; dev_dbg(&spi->dev, "probing tlv320aic23 spi device\n"); spi->mode = SPI_MODE_0; ret = spi_setup(spi); if (ret < 0) return ret; regmap = devm_regmap_init_spi(spi, &tlv320aic23_regmap); return tlv320aic23_probe(&spi->dev, regmap); } static int aic23_spi_remove(struct spi_device *spi) { snd_soc_unregister_codec(&spi->dev); return 0; } static struct spi_driver aic23_spi = { .driver = { .name = "tlv320aic23", }, .probe = aic23_spi_probe, .remove = aic23_spi_remove, }; module_spi_driver(aic23_spi); MODULE_DESCRIPTION("ASoC TLV320AIC23 codec driver SPI"); MODULE_AUTHOR("Arun KS "); MODULE_LICENSE("GPL"); back net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-09-17 07:52:49 -0700
committerGuenter Roeck <linux@roeck-us.net>2016-09-18 07:26:26 -0700
commit65c0044ca8d7c7bbccae37f0ff2972f0210e9f41 (patch)
tree4a28522b7a337eccddbfd484ed3dc24eeb766343
parentd4690f1e1cdabb4d61207b6787b1605a0dc0aeab (diff)
avr32: fix 'undefined reference to `___copy_from_user'
avr32 builds fail with: arch/avr32/kernel/built-in.o: In function `arch_ptrace': (.text+0x650): undefined reference to `___copy_from_user' arch/avr32/kernel/built-in.o:(___ksymtab+___copy_from_user+0x0): undefined reference to `___copy_from_user' kernel/built-in.o: In function `proc_doulongvec_ms_jiffies_minmax': (.text+0x5dd8): undefined reference to `___copy_from_user' kernel/built-in.o: In function `proc_dointvec_minmax_sysadmin': sysctl.c:(.text+0x6174): undefined reference to `___copy_from_user' kernel/built-in.o: In function `ptrace_has_cap': ptrace.c:(.text+0x69c0): undefined reference to `___copy_from_user' kernel/built-in.o:ptrace.c:(.text+0x6b90): more undefined references to `___copy_from_user' follow Fixes: 8630c32275ba ("avr32: fix copy_from_user()") Cc: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Havard Skinnemoen <hskinnemoen@gmail.com> Acked-by: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no> Signed-off-by: Guenter Roeck <linux@roeck-us.net>