diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-01-18 11:16:12 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-18 11:33:03 -0800 |
commit | 32237677fb6a15f08aadfe2bb4129b2de7e7caab (patch) | |
tree | 537efa892b8b0db15cfaaabd4d57be1716e97fe8 /drivers/input/serio | |
parent | 009af5fdb4fb65e73c5783bf2de64490fcd84910 (diff) | |
download | linux-32237677fb6a15f08aadfe2bb4129b2de7e7caab.tar.gz linux-32237677fb6a15f08aadfe2bb4129b2de7e7caab.tar.bz2 linux-32237677fb6a15f08aadfe2bb4129b2de7e7caab.zip |
Input: xilinx_ps2 - use 'dev' instead of dereferencing it
Use local variable 'dev' instead of dereferencing it several times.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/serio')
-rw-r--r-- | drivers/input/serio/xilinx_ps2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/input/serio/xilinx_ps2.c b/drivers/input/serio/xilinx_ps2.c index 5223cbf94262..14c40892ed82 100644 --- a/drivers/input/serio/xilinx_ps2.c +++ b/drivers/input/serio/xilinx_ps2.c @@ -243,18 +243,17 @@ static int xps2_of_probe(struct platform_device *ofdev) unsigned int irq; int error; - dev_info(dev, "Device Tree Probing \'%s\'\n", - ofdev->dev.of_node->name); + dev_info(dev, "Device Tree Probing \'%s\'\n", dev->of_node->name); /* Get iospace for the device */ - error = of_address_to_resource(ofdev->dev.of_node, 0, &r_mem); + error = of_address_to_resource(dev->of_node, 0, &r_mem); if (error) { dev_err(dev, "invalid address\n"); return error; } /* Get IRQ for the device */ - irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); + irq = irq_of_parse_and_map(dev->of_node, 0); if (!irq) { dev_err(dev, "no IRQ found\n"); return -ENODEV; |