forked from Minki/linux
Input: opencores-kbd - fix error handling
When I was adjusting patch in 848d479361
to
use devm_ioremap_resource() I messed it up.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
859abd1d59
commit
42b63e603e
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user