aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ipu/ipu_idmac.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <lg@denx.de>2009-03-25 12:13:24 -0400
committerDan Williams <dan.j.williams@intel.com>2009-03-25 12:13:24 -0400
commit234f2df56f5b05756c444edc9879145deddf69f4 (patch)
tree6946d1561e3243cbb4046652d1d70b647bb7947d /drivers/dma/ipu/ipu_idmac.c
parent0149f7d5dc66dcffbb044ba005a5378a5864d2a3 (diff)
dma: improve section assignment in i.MX31 IPU DMA driver
The i.MX31 IPU DMA driver is a platform driver, but doesn't need hotplug, so we can use __init and __exit function attributes. Signed-off-by: Guennadi Liakhovetski <lg@denx.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ipu/ipu_idmac.c')
-rw-r--r--drivers/dma/ipu/ipu_idmac.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c
index a6f7294c8598..b759ae9315ba 100644
--- a/drivers/dma/ipu/ipu_idmac.c
+++ b/drivers/dma/ipu/ipu_idmac.c
@@ -1576,7 +1576,7 @@ static int __init ipu_idmac_init(struct ipu *ipu)
1576 return dma_async_device_register(&idmac->dma); 1576 return dma_async_device_register(&idmac->dma);
1577} 1577}
1578 1578
1579static void ipu_idmac_exit(struct ipu *ipu) 1579static void __exit ipu_idmac_exit(struct ipu *ipu)
1580{ 1580{
1581 int i; 1581 int i;
1582 struct idmac *idmac = &ipu->idmac; 1582 struct idmac *idmac = &ipu->idmac;
@@ -1595,7 +1595,7 @@ static void ipu_idmac_exit(struct ipu *ipu)
1595 * IPU common probe / remove 1595 * IPU common probe / remove
1596 */ 1596 */
1597 1597
1598static int ipu_probe(struct platform_device *pdev) 1598static int __init ipu_probe(struct platform_device *pdev)
1599{ 1599{
1600 struct ipu_platform_data *pdata = pdev->dev.platform_data; 1600 struct ipu_platform_data *pdata = pdev->dev.platform_data;
1601 struct resource *mem_ipu, *mem_ic; 1601 struct resource *mem_ipu, *mem_ic;
@@ -1695,7 +1695,7 @@ err_noirq:
1695 return ret; 1695 return ret;
1696} 1696}
1697 1697
1698static int ipu_remove(struct platform_device *pdev) 1698static int __exit ipu_remove(struct platform_device *pdev)
1699{ 1699{
1700 struct ipu *ipu = platform_get_drvdata(pdev); 1700 struct ipu *ipu = platform_get_drvdata(pdev);
1701 1701
@@ -1720,7 +1720,7 @@ static struct platform_driver ipu_platform_driver = {
1720 .name = "ipu-core", 1720 .name = "ipu-core",
1721 .owner = THIS_MODULE, 1721 .owner = THIS_MODULE,
1722 }, 1722 },
1723 .remove = ipu_remove, 1723 .remove = __exit_p(ipu_remove),
1724}; 1724};
1725 1725
1726static int __init ipu_init(void) 1726static int __init ipu_init(void)