summaryrefslogtreecommitdiffstats
path: root/drivers/dma/ipu/ipu_irq.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <lg@denx.de>2009-03-25 17:13:24 +0100
committerDan Williams <dan.j.williams@intel.com>2009-03-25 17:13:24 +0100
commit234f2df56f5b05756c444edc9879145deddf69f4 (patch)
tree6946d1561e3243cbb4046652d1d70b647bb7947d /drivers/dma/ipu/ipu_irq.c
parentdma: ipu_idmac driver cosmetic clean-up (diff)
downloadlinux-234f2df56f5b05756c444edc9879145deddf69f4.tar.xz
linux-234f2df56f5b05756c444edc9879145deddf69f4.zip
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_irq.c')
-rw-r--r--drivers/dma/ipu/ipu_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ipu/ipu_irq.c b/drivers/dma/ipu/ipu_irq.c
index 83f532cc767f..dd8ebc75b667 100644
--- a/drivers/dma/ipu/ipu_irq.c
+++ b/drivers/dma/ipu/ipu_irq.c
@@ -352,7 +352,7 @@ static struct irq_chip ipu_irq_chip = {
};
/* 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;
unsigned int irq, irq_base, i;