summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-11-01 22:08:14 +0530
committerWolfram Sang <w.sang@pengutronix.de>2012-11-02 10:52:52 +0100
commit91b370a0dbda5de92c2cf4c3bc0d18d6bf08f05f (patch)
tree8321f0f5a2e8f141eed77663bc22d3476cebe439 /drivers
parent817315f57408b1a9c78cbc7ff2bf186da45ddcc1 (diff)
downloadop-kernel-dev-91b370a0dbda5de92c2cf4c3bc0d18d6bf08f05f.zip
op-kernel-dev-91b370a0dbda5de92c2cf4c3bc0d18d6bf08f05f.tar.gz
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. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/busses/i2c-tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index f981ac4..dcea77b 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -742,7 +742,7 @@ static int __devinit tegra_i2c_probe(struct platform_device *pdev)
}
ret = devm_request_irq(&pdev->dev, i2c_dev->irq,
- tegra_i2c_isr, 0, pdev->name, i2c_dev);
+ tegra_i2c_isr, 0, dev_name(&pdev->dev), i2c_dev);
if (ret) {
dev_err(&pdev->dev, "Failed to request irq %i\n", i2c_dev->irq);
return ret;
OpenPOWER on IntegriCloud