Skip to content

Commit

Permalink
x86, intel-mid: Return proper error code from get_gpio_by_name()
Browse files Browse the repository at this point in the history
This patch cleans up get_gpio_by_name() to return an error code
instead of hardcoded -1.

Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Link: http://lkml.kernel.org/r/1389913624-9149-4-git-send-email-david.a.cohen@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
David Cohen authored and H. Peter Anvin committed Jan 16, 2014
1 parent a957a14 commit 28c6a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/platform/intel-mid/sfi.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ int get_gpio_by_name(const char *name)
if (!strncmp(name, pentry->pin_name, SFI_NAME_LEN))
return pentry->pin_no;
}
return -1;
return -EINVAL;
}

void __init intel_scu_device_register(struct platform_device *pdev)
Expand Down

0 comments on commit 28c6a39

Please sign in to comment.