diff options
author | Philippe Rétornaz <philippe.retornaz@epfl.ch> | 2012-05-15 07:53:49 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-18 11:42:08 -0400 |
commit | e3a0871c8f67e228ac227be02f8da580cfa0dc27 (patch) | |
tree | 4317f5cd193e55e6c59053d7e5f853b3fcd7d378 /drivers/mfd/mc13xxx-core.c | |
parent | fe33d4c5e2b27a4b82aa479a58f2621eec103d1b (diff) |
mfd: mc13xxx: add codec platform data
Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/mfd/mc13xxx-core.c')
-rw-r--r-- | drivers/mfd/mc13xxx-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c index 9fd4f63c45c..738722cdeca 100644 --- a/drivers/mfd/mc13xxx-core.c +++ b/drivers/mfd/mc13xxx-core.c | |||
@@ -813,7 +813,8 @@ err_revision: | |||
813 | mc13xxx_add_subdevice(mc13xxx, "%s-adc"); | 813 | mc13xxx_add_subdevice(mc13xxx, "%s-adc"); |
814 | 814 | ||
815 | if (mc13xxx->flags & MC13XXX_USE_CODEC) | 815 | if (mc13xxx->flags & MC13XXX_USE_CODEC) |
816 | mc13xxx_add_subdevice(mc13xxx, "%s-codec"); | 816 | mc13xxx_add_subdevice_pdata(mc13xxx, "%s-codec", |
817 | pdata->codec, sizeof(*pdata->codec)); | ||
817 | 818 | ||
818 | if (mc13xxx->flags & MC13XXX_USE_RTC) | 819 | if (mc13xxx->flags & MC13XXX_USE_RTC) |
819 | mc13xxx_add_subdevice(mc13xxx, "%s-rtc"); | 820 | mc13xxx_add_subdevice(mc13xxx, "%s-rtc"); |