.. | .. |
---|
270 | 270 | static struct snd_soc_dai_driver sh4_hac_dai[] = { |
---|
271 | 271 | { |
---|
272 | 272 | .name = "hac-dai.0", |
---|
273 | | - .bus_control = true, |
---|
274 | 273 | .playback = { |
---|
275 | 274 | .rates = AC97_RATES, |
---|
276 | 275 | .formats = AC97_FMTS, |
---|
.. | .. |
---|
319 | 318 | if (ret != 0) |
---|
320 | 319 | return ret; |
---|
321 | 320 | |
---|
322 | | - return snd_soc_register_component(&pdev->dev, &sh4_hac_component, |
---|
| 321 | + return devm_snd_soc_register_component(&pdev->dev, &sh4_hac_component, |
---|
323 | 322 | sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai)); |
---|
324 | 323 | } |
---|
325 | 324 | |
---|
326 | 325 | static int hac_soc_platform_remove(struct platform_device *pdev) |
---|
327 | 326 | { |
---|
328 | | - snd_soc_unregister_component(&pdev->dev); |
---|
329 | 327 | snd_soc_set_ac97_ops(NULL); |
---|
330 | 328 | return 0; |
---|
331 | 329 | } |
---|