x86, intel-mid: Check get_gpio_by_name() error code on platform code
authorDavid Cohen <david.a.cohen@linux.intel.com>
Thu, 16 Jan 2014 23:07:03 +0000 (15:07 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 16 Jan 2014 23:06:58 +0000 (15:06 -0800)
commita957a14bb4ca976cbaaff3594ef5b8f8f7f65804
tree82130484558a2d76ab139d90df04375742a170d0
parentacb20d7395f75b0fdb5b300f9fb3b9c6054fb04f
x86, intel-mid: Check get_gpio_by_name() error code on platform code

This patch does cleanup on all intel mid platform code that uses
gpio_get_by_name() function. From now on they should check for any error
code instead of only hardcoded -1.

There are no functional changes from this change.

Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Link: http://lkml.kernel.org/r/1389913624-9149-3-git-send-email-david.a.cohen@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/platform/intel-mid/device_libs/platform_emc1403.c
arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.c
arch/x86/platform/intel-mid/device_libs/platform_lis331.c
arch/x86/platform/intel-mid/device_libs/platform_max7315.c
arch/x86/platform/intel-mid/device_libs/platform_mpu3050.c
arch/x86/platform/intel-mid/device_libs/platform_pmic_gpio.c
arch/x86/platform/intel-mid/device_libs/platform_tca6416.c