~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/dma/fsldma.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1332
1332
        kfree(chan);
1333
1333
}
1334
1334
 
1335
 
static int __devinit fsldma_of_probe(struct platform_device *op,
1336
 
                        const struct of_device_id *match)
 
1335
static int __devinit fsldma_of_probe(struct platform_device *op)
1337
1336
{
1338
1337
        struct fsldma_device *fdev;
1339
1338
        struct device_node *child;
1449
1448
        {}
1450
1449
};
1451
1450
 
1452
 
static struct of_platform_driver fsldma_of_driver = {
 
1451
static struct platform_driver fsldma_of_driver = {
1453
1452
        .driver = {
1454
1453
                .name = "fsl-elo-dma",
1455
1454
                .owner = THIS_MODULE,
1465
1464
 
1466
1465
static __init int fsldma_init(void)
1467
1466
{
1468
 
        int ret;
1469
 
 
1470
1467
        pr_info("Freescale Elo / Elo Plus DMA driver\n");
1471
 
 
1472
 
        ret = of_register_platform_driver(&fsldma_of_driver);
1473
 
        if (ret)
1474
 
                pr_err("fsldma: failed to register platform driver\n");
1475
 
 
1476
 
        return ret;
 
1468
        return platform_driver_register(&fsldma_of_driver);
1477
1469
}
1478
1470
 
1479
1471
static void __exit fsldma_exit(void)
1480
1472
{
1481
 
        of_unregister_platform_driver(&fsldma_of_driver);
 
1473
        platform_driver_unregister(&fsldma_of_driver);
1482
1474
}
1483
1475
 
1484
1476
subsys_initcall(fsldma_init);