mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
prefix irq handlers with ddb_ to avoid name collisions
This commit is contained in:
parent
b2ca06e639
commit
07f7720145
@ -3359,7 +3359,7 @@ static void irq_handle_io(struct ddb *dev, u32 s)
|
||||
}
|
||||
}
|
||||
|
||||
irqreturn_t irq_handler0(int irq, void *dev_id)
|
||||
irqreturn_t ddb_irq_handler0(int irq, void *dev_id)
|
||||
{
|
||||
struct ddb *dev = (struct ddb *)dev_id;
|
||||
u32 s = ddbreadl(dev, INTERRUPT_STATUS);
|
||||
@ -3376,7 +3376,7 @@ irqreturn_t irq_handler0(int irq, void *dev_id)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
irqreturn_t irq_handler1(int irq, void *dev_id)
|
||||
irqreturn_t ddb_irq_handler1(int irq, void *dev_id)
|
||||
{
|
||||
struct ddb *dev = (struct ddb *)dev_id;
|
||||
u32 s = ddbreadl(dev, INTERRUPT_STATUS);
|
||||
@ -3393,7 +3393,7 @@ irqreturn_t irq_handler1(int irq, void *dev_id)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
irqreturn_t irq_handler(int irq, void *dev_id)
|
||||
irqreturn_t ddb_irq_handler(int irq, void *dev_id)
|
||||
{
|
||||
struct ddb *dev = (struct ddb *)dev_id;
|
||||
u32 s = ddbreadl(dev, INTERRUPT_STATUS);
|
||||
@ -3472,7 +3472,7 @@ static irqreturn_t irq_handle_v2_n(struct ddb *dev, u32 n)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
irqreturn_t irq_handler_v2(int irq, void *dev_id)
|
||||
irqreturn_t ddb_irq_handler_v2(int irq, void *dev_id)
|
||||
{
|
||||
struct ddb *dev = (struct ddb *)dev_id;
|
||||
u32 s = 0xffff & ddbreadl(dev, INTERRUPT_V2_STATUS);
|
||||
|
@ -147,7 +147,7 @@ static int __devinit ddb_irq_init2(struct ddb *dev)
|
||||
if (dev->msi)
|
||||
irq_flag = 0;
|
||||
|
||||
stat = request_irq(dev->pdev->irq, irq_handler_v2,
|
||||
stat = request_irq(dev->pdev->irq, ddb_irq_handler_v2,
|
||||
irq_flag, "ddbridge", (void *)dev);
|
||||
if (stat < 0)
|
||||
return stat;
|
||||
@ -185,11 +185,11 @@ static int __devinit ddb_irq_init(struct ddb *dev)
|
||||
if (dev->msi)
|
||||
irq_flag = 0;
|
||||
if (dev->msi == 2) {
|
||||
stat = request_irq(dev->pdev->irq, irq_handler0,
|
||||
stat = request_irq(dev->pdev->irq, ddb_irq_handler0,
|
||||
irq_flag, "ddbridge", (void *)dev);
|
||||
if (stat < 0)
|
||||
return stat;
|
||||
stat = request_irq(dev->pdev->irq + 1, irq_handler1,
|
||||
stat = request_irq(dev->pdev->irq + 1, ddb_irq_handler1,
|
||||
irq_flag, "ddbridge", (void *)dev);
|
||||
if (stat < 0) {
|
||||
free_irq(dev->pdev->irq, dev);
|
||||
@ -197,12 +197,12 @@ static int __devinit ddb_irq_init(struct ddb *dev)
|
||||
}
|
||||
} else {
|
||||
#ifdef DDB_TEST_THREADED
|
||||
stat = request_threaded_irq(dev->pdev->irq, irq_handler,
|
||||
stat = request_threaded_irq(dev->pdev->irq, ddb_irq_handler,
|
||||
irq_thread,
|
||||
irq_flag,
|
||||
"ddbridge", (void *)dev);
|
||||
#else
|
||||
stat = request_irq(dev->pdev->irq, irq_handler,
|
||||
stat = request_irq(dev->pdev->irq, ddb_irq_handler,
|
||||
irq_flag, "ddbridge", (void *)dev);
|
||||
#endif
|
||||
if (stat < 0)
|
||||
|
@ -552,10 +552,10 @@ void ddb_ports_detach(struct ddb *dev);
|
||||
void ddb_ports_release(struct ddb *dev);
|
||||
void ddb_buffers_free(struct ddb *dev);
|
||||
void ddb_unmap(struct ddb *dev);
|
||||
irqreturn_t irq_handler0(int irq, void *dev_id);
|
||||
irqreturn_t irq_handler1(int irq, void *dev_id);
|
||||
irqreturn_t irq_handler(int irq, void *dev_id);
|
||||
irqreturn_t irq_handler_v2(int irq, void *dev_id);
|
||||
irqreturn_t ddb_irq_handler0(int irq, void *dev_id);
|
||||
irqreturn_t ddb_irq_handler1(int irq, void *dev_id);
|
||||
irqreturn_t ddb_irq_handler(int irq, void *dev_id);
|
||||
irqreturn_t ddb_irq_handler_v2(int irq, void *dev_id);
|
||||
void ddb_reset_ios(struct ddb *dev);
|
||||
int ddb_init(struct ddb *dev);
|
||||
int ddb_class_create(void);
|
||||
|
@ -100,7 +100,7 @@ static int __init octonet_probe(struct platform_device *pdev)
|
||||
irq = platform_get_irq(dev->pfdev, 0);
|
||||
if (irq < 0)
|
||||
goto fail;
|
||||
if (request_irq(irq, irq_handler,
|
||||
if (request_irq(irq, ddb_irq_handler,
|
||||
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
|
||||
"octonet-dvb", (void *)dev) < 0)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user