提交 234f2df5 编写于 作者: G Guennadi Liakhovetski 提交者: Dan Williams

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: NGuennadi Liakhovetski <lg@denx.de>
Signed-off-by: NDan Williams <dan.j.williams@intel.com>
上级 0149f7d5
...@@ -1576,7 +1576,7 @@ static int __init ipu_idmac_init(struct ipu *ipu) ...@@ -1576,7 +1576,7 @@ static int __init ipu_idmac_init(struct ipu *ipu)
return dma_async_device_register(&idmac->dma); return dma_async_device_register(&idmac->dma);
} }
static void ipu_idmac_exit(struct ipu *ipu) static void __exit ipu_idmac_exit(struct ipu *ipu)
{ {
int i; int i;
struct idmac *idmac = &ipu->idmac; struct idmac *idmac = &ipu->idmac;
...@@ -1595,7 +1595,7 @@ static void ipu_idmac_exit(struct ipu *ipu) ...@@ -1595,7 +1595,7 @@ static void ipu_idmac_exit(struct ipu *ipu)
* IPU common probe / remove * IPU common probe / remove
*/ */
static int ipu_probe(struct platform_device *pdev) static int __init ipu_probe(struct platform_device *pdev)
{ {
struct ipu_platform_data *pdata = pdev->dev.platform_data; struct ipu_platform_data *pdata = pdev->dev.platform_data;
struct resource *mem_ipu, *mem_ic; struct resource *mem_ipu, *mem_ic;
...@@ -1695,7 +1695,7 @@ static int ipu_probe(struct platform_device *pdev) ...@@ -1695,7 +1695,7 @@ static int ipu_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int ipu_remove(struct platform_device *pdev) static int __exit ipu_remove(struct platform_device *pdev)
{ {
struct ipu *ipu = platform_get_drvdata(pdev); struct ipu *ipu = platform_get_drvdata(pdev);
...@@ -1720,7 +1720,7 @@ static struct platform_driver ipu_platform_driver = { ...@@ -1720,7 +1720,7 @@ static struct platform_driver ipu_platform_driver = {
.name = "ipu-core", .name = "ipu-core",
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.remove = ipu_remove, .remove = __exit_p(ipu_remove),
}; };
static int __init ipu_init(void) static int __init ipu_init(void)
......
...@@ -352,7 +352,7 @@ static struct irq_chip ipu_irq_chip = { ...@@ -352,7 +352,7 @@ static struct irq_chip ipu_irq_chip = {
}; };
/* Install the IRQ handler */ /* Install the IRQ handler */
int ipu_irq_attach_irq(struct ipu *ipu, struct platform_device *dev) int __init ipu_irq_attach_irq(struct ipu *ipu, struct platform_device *dev)
{ {
struct ipu_platform_data *pdata = dev->dev.platform_data; struct ipu_platform_data *pdata = dev->dev.platform_data;
unsigned int irq, irq_base, i; unsigned int irq, irq_base, i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册