Commit 3bdf28feafc52864bd7f17b39deec64833a89d19

Authored by Timur Tabi
Committed by Mark Brown
1 parent 18036b5866

ASoC: MPC5200: replace of_device with platform_device

'struct of_device' no longer exists, and its functionality has been merged
into platform_device.  Update the MPC5200 audio DMA driver (mpc5200_dma)
accordingly.  This fixes a build break.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

sound/soc/fsl/mpc5200_dma.c
... ... @@ -369,7 +369,7 @@
369 369 .pcm_free = &psc_dma_free,
370 370 };
371 371  
372   -static int mpc5200_hpcd_probe(struct of_device *op)
  372 +static int mpc5200_hpcd_probe(struct platform_device *op)
373 373 {
374 374 phys_addr_t fifo;
375 375 struct psc_dma *psc_dma;
... ... @@ -487,7 +487,7 @@
487 487 return ret;
488 488 }
489 489  
490   -static int mpc5200_hpcd_remove(struct of_device *op)
  490 +static int mpc5200_hpcd_remove(struct platform_device *op)
491 491 {
492 492 struct psc_dma *psc_dma = dev_get_drvdata(&op->dev);
493 493  
... ... @@ -519,7 +519,7 @@
519 519 static struct platform_driver mpc5200_hpcd_of_driver = {
520 520 .probe = mpc5200_hpcd_probe,
521 521 .remove = mpc5200_hpcd_remove,
522   - .dev = {
  522 + .driver = {
523 523 .owner = THIS_MODULE,
524 524 .name = "mpc5200-pcm-audio",
525 525 .of_match_table = mpc5200_hpcd_match,