diff options
Diffstat (limited to 'sound/soc/codecs/wm8782.c')
-rw-r--r-- | sound/soc/codecs/wm8782.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8782.c b/sound/soc/codecs/wm8782.c index fb55fd845d27..bcda21018505 100644 --- a/sound/soc/codecs/wm8782.c +++ b/sound/soc/codecs/wm8782.c | |||
@@ -50,11 +50,13 @@ static struct snd_soc_dai_driver wm8782_dai = { | |||
50 | }, | 50 | }, |
51 | }; | 51 | }; |
52 | 52 | ||
53 | static struct snd_soc_codec_driver soc_codec_dev_wm8782 = { | 53 | static const struct snd_soc_codec_driver soc_codec_dev_wm8782 = { |
54 | .dapm_widgets = wm8782_dapm_widgets, | 54 | .component_driver = { |
55 | .num_dapm_widgets = ARRAY_SIZE(wm8782_dapm_widgets), | 55 | .dapm_widgets = wm8782_dapm_widgets, |
56 | .dapm_routes = wm8782_dapm_routes, | 56 | .num_dapm_widgets = ARRAY_SIZE(wm8782_dapm_widgets), |
57 | .num_dapm_routes = ARRAY_SIZE(wm8782_dapm_routes), | 57 | .dapm_routes = wm8782_dapm_routes, |
58 | .num_dapm_routes = ARRAY_SIZE(wm8782_dapm_routes), | ||
59 | }, | ||
58 | }; | 60 | }; |
59 | 61 | ||
60 | static int wm8782_probe(struct platform_device *pdev) | 62 | static int wm8782_probe(struct platform_device *pdev) |