diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-10-24 14:27:25 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-10-28 10:32:59 -0700 |
commit | 42b63e603e69e1a27da80dda28b18f171aac49d1 (patch) | |
tree | b27b11c16ffbb7e4aeb4851c0d4d6339dd984269 /drivers/input | |
parent | 859abd1d59e2db07d2e4db27074fc33568353d11 (diff) | |
download | linux-42b63e603e69e1a27da80dda28b18f171aac49d1.tar.gz linux-42b63e603e69e1a27da80dda28b18f171aac49d1.tar.bz2 linux-42b63e603e69e1a27da80dda28b18f171aac49d1.zip |
Input: opencores-kbd - fix error handling
When I was adjusting patch in 848d479361793edb79aa68140cb64d4ec9032d88 to
use devm_ioremap_resource() I messed it up.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/opencores-kbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/opencores-kbd.c b/drivers/input/keyboard/opencores-kbd.c index 62abe2c16670..f8502bb29176 100644 --- a/drivers/input/keyboard/opencores-kbd.c +++ b/drivers/input/keyboard/opencores-kbd.c @@ -70,7 +70,7 @@ static int opencores_kbd_probe(struct platform_device *pdev) opencores_kbd->addr = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(opencores_kbd->addr)) - error = PTR_ERR(opencores_kbd->addr); + return PTR_ERR(opencores_kbd->addr); input->name = pdev->name; input->phys = "opencores-kbd/input0"; |