diff options
Diffstat (limited to 'sound/soc/davinci')
-rw-r--r-- | sound/soc/davinci/davinci-evm.c | 3 | ||||
-rw-r--r-- | sound/soc/davinci/davinci-sffsdr.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index 54851f318568..9b90b347007c 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c | |||
@@ -186,7 +186,8 @@ static int __init evm_init(void) | |||
186 | 186 | ||
187 | platform_set_drvdata(evm_snd_device, &evm_snd_devdata); | 187 | platform_set_drvdata(evm_snd_device, &evm_snd_devdata); |
188 | evm_snd_devdata.dev = &evm_snd_device->dev; | 188 | evm_snd_devdata.dev = &evm_snd_device->dev; |
189 | evm_snd_device->dev.platform_data = &evm_snd_data; | 189 | platform_device_add_data(evm_snd_device, &evm_snd_data, |
190 | sizeof(evm_snd_data)); | ||
190 | 191 | ||
191 | ret = platform_device_add_resources(evm_snd_device, evm_snd_resources, | 192 | ret = platform_device_add_resources(evm_snd_device, evm_snd_resources, |
192 | ARRAY_SIZE(evm_snd_resources)); | 193 | ARRAY_SIZE(evm_snd_resources)); |
diff --git a/sound/soc/davinci/davinci-sffsdr.c b/sound/soc/davinci/davinci-sffsdr.c index 50baef1fe5b4..0bf81abba8c7 100644 --- a/sound/soc/davinci/davinci-sffsdr.c +++ b/sound/soc/davinci/davinci-sffsdr.c | |||
@@ -141,7 +141,8 @@ static int __init sffsdr_init(void) | |||
141 | 141 | ||
142 | platform_set_drvdata(sffsdr_snd_device, &sffsdr_snd_devdata); | 142 | platform_set_drvdata(sffsdr_snd_device, &sffsdr_snd_devdata); |
143 | sffsdr_snd_devdata.dev = &sffsdr_snd_device->dev; | 143 | sffsdr_snd_devdata.dev = &sffsdr_snd_device->dev; |
144 | sffsdr_snd_device->dev.platform_data = &sffsdr_snd_data; | 144 | platform_device_add_data(sffsdr_snd_device, &sffsdr_snd_data, |
145 | sizeof(sffsdr_snd_data)); | ||
145 | 146 | ||
146 | ret = platform_device_add_resources(sffsdr_snd_device, | 147 | ret = platform_device_add_resources(sffsdr_snd_device, |
147 | sffsdr_snd_resources, | 148 | sffsdr_snd_resources, |