|
@@ -186,7 +186,8 @@ static int __init evm_init(void)
|
|
|
|
|
|
platform_set_drvdata(evm_snd_device, &evm_snd_devdata);
|
|
|
evm_snd_devdata.dev = &evm_snd_device->dev;
|
|
|
- evm_snd_device->dev.platform_data = &evm_snd_data;
|
|
|
+ platform_device_add_data(evm_snd_device, &evm_snd_data,
|
|
|
+ sizeof(evm_snd_data));
|
|
|
|
|
|
ret = platform_device_add_resources(evm_snd_device, evm_snd_resources,
|
|
|
ARRAY_SIZE(evm_snd_resources));
|