Skip to content

Commit

Permalink
Input: opencores-kbd - fix error handling
Browse files Browse the repository at this point in the history
When I was adjusting patch in 848d479 to
use devm_ioremap_resource() I messed it up.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Dmitry Torokhov committed Oct 28, 2014
1 parent 859abd1 commit 42b63e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/opencores-kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 42b63e6

Please sign in to comment.