diff options
Diffstat (limited to 'sound/soc/kirkwood/kirkwood-i2s.c')
-rw-r--r-- | sound/soc/kirkwood/kirkwood-i2s.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c index 715e841c0507..3cb9aa4299d3 100644 --- a/sound/soc/kirkwood/kirkwood-i2s.c +++ b/sound/soc/kirkwood/kirkwood-i2s.c | |||
@@ -373,7 +373,7 @@ static int kirkwood_i2s_remove(struct snd_soc_dai *dai) | |||
373 | return 0; | 373 | return 0; |
374 | } | 374 | } |
375 | 375 | ||
376 | static struct snd_soc_dai_ops kirkwood_i2s_dai_ops = { | 376 | static const struct snd_soc_dai_ops kirkwood_i2s_dai_ops = { |
377 | .startup = kirkwood_i2s_startup, | 377 | .startup = kirkwood_i2s_startup, |
378 | .trigger = kirkwood_i2s_trigger, | 378 | .trigger = kirkwood_i2s_trigger, |
379 | .hw_params = kirkwood_i2s_hw_params, | 379 | .hw_params = kirkwood_i2s_hw_params, |
@@ -441,13 +441,12 @@ static __devinit int kirkwood_i2s_dev_probe(struct platform_device *pdev) | |||
441 | goto err_ioremap; | 441 | goto err_ioremap; |
442 | } | 442 | } |
443 | 443 | ||
444 | if (!data || !data->dram) { | 444 | if (!data) { |
445 | dev_err(&pdev->dev, "no platform data ?!\n"); | 445 | dev_err(&pdev->dev, "no platform data ?!\n"); |
446 | err = -EINVAL; | 446 | err = -EINVAL; |
447 | goto err_ioremap; | 447 | goto err_ioremap; |
448 | } | 448 | } |
449 | 449 | ||
450 | priv->dram = data->dram; | ||
451 | priv->burst = data->burst; | 450 | priv->burst = data->burst; |
452 | 451 | ||
453 | return snd_soc_register_dai(&pdev->dev, &kirkwood_i2s_dai); | 452 | return snd_soc_register_dai(&pdev->dev, &kirkwood_i2s_dai); |
@@ -483,17 +482,7 @@ static struct platform_driver kirkwood_i2s_driver = { | |||
483 | }, | 482 | }, |
484 | }; | 483 | }; |
485 | 484 | ||
486 | static int __init kirkwood_i2s_init(void) | 485 | module_platform_driver(kirkwood_i2s_driver); |
487 | { | ||
488 | return platform_driver_register(&kirkwood_i2s_driver); | ||
489 | } | ||
490 | module_init(kirkwood_i2s_init); | ||
491 | |||
492 | static void __exit kirkwood_i2s_exit(void) | ||
493 | { | ||
494 | platform_driver_unregister(&kirkwood_i2s_driver); | ||
495 | } | ||
496 | module_exit(kirkwood_i2s_exit); | ||
497 | 486 | ||
498 | /* Module information */ | 487 | /* Module information */ |
499 | MODULE_AUTHOR("Arnaud Patard, <arnaud.patard@rtp-net.org>"); | 488 | MODULE_AUTHOR("Arnaud Patard, <arnaud.patard@rtp-net.org>"); |