Lines Matching defs:sound_device
56 static int mpc8610_hpcd_machine_probe(struct platform_device *sound_device)
59 sound_device->dev.platform_data;
153 int mpc8610_hpcd_machine_remove(struct platform_device *sound_device)
156 sound_device->dev.platform_data;
198 struct platform_device *sound_device = NULL;
444 sound_device = platform_device_alloc("soc-audio", -1);
445 if (!sound_device) {
455 sound_device->dev.platform_data = machine_data;
459 platform_set_drvdata(sound_device, &machine_data->sound_devdata);
461 machine_data->sound_devdata.dev = &sound_device->dev;
466 ret = platform_device_add(sound_device);
473 dev_set_drvdata(&ofdev->dev, sound_device);
483 if (sound_device)
484 platform_device_unregister(sound_device);
522 struct platform_device *sound_device = dev_get_drvdata(&ofdev->dev);
524 sound_device->dev.platform_data;
526 platform_device_unregister(sound_device);
550 sound_device->dev.platform_data = NULL;