[PATCH] usb: chipidea: set unique names to requested irqs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This change allows to get a driver instance of usb controller, which
registers an irq, now the interrupt names are unique:

    # cat /proc/interrupts | grep ci_
     72:       0       0       0       0    GIC  72  ci_hdrc.0
     75:    2096       0       0       0    GIC  75  ci_hdrc.1

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@xxxxxxxxxx>
---
 drivers/usb/chipidea/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index 3feebf7..f2d2e5c 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -917,7 +917,7 @@ static int ci_hdrc_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, ci);
 	ret = devm_request_irq(dev, ci->irq, ci_irq, IRQF_SHARED,
-			ci->platdata->name, ci);
+			       dev_name(dev), ci);
 	if (ret)
 		goto stop;
 
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux