History

i2c: tegra: set irq name as device name

When watching the irqs name of tegra i2c, all instances irq name shows as tegra_i2c. Passing the device name properly to have the irq names with instance like tegra-i2c.0, tegra-i2c.1 etc.

Laxman Dewangan committed 14 years ago

Commit 91b370a1 parent 817315f1 file · +1 −1Browse files

Unified · Split

drivers/i2c/busses/i2c-tegra.c+1−1
@@ -742,7 +742,7 @@ static int __devinit tegra_i2c_probe(struct platform_device *pdev) · 741 unmodified lines
742742 }
743743
744744 ret = devm_request_irq(&pdev->dev, i2c_dev->irq,
745− tegra_i2c_isr, 0, pdev->name, i2c_dev);
745+ tegra_i2c_isr, 0, dev_name(&pdev->dev), i2c_dev);
746746 if (ret) {
747747 dev_err(&pdev->dev, "Failed to request irq %i\n", i2c_dev->irq);
748748 return ret;