]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
i2c-pca-platform: Change device name of request_irq
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Sun, 24 Oct 2010 16:16:57 +0000 (18:16 +0200)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:02 +0000 (23:40 +0100)
commit 323584436db0cb05286425d4dfd9516fce88487f upstream.

i2c->adap.name shouldn't be used in request_irq.
Instead the driver name "i2c-pca-platform" should be used.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/i2c/busses/i2c-pca-platform.c

index 5f6d7f89e2252d1a4806a3be9e6368c212ceed48..ace67995d7de85d6bd93920e0595f73b49bd9763 100644 (file)
@@ -224,7 +224,7 @@ static int __devinit i2c_pca_pf_probe(struct platform_device *pdev)
 
        if (irq) {
                ret = request_irq(irq, i2c_pca_pf_handler,
-                       IRQF_TRIGGER_FALLING, i2c->adap.name, i2c);
+                       IRQF_TRIGGER_FALLING, pdev->name, i2c);
                if (ret)
                        goto e_reqirq;
        }