]> git.baikalelectronics.ru Git - kernel.git/commit
x86, intel-mid: sfi_handle_*_dev() should check for pdata error code
authorDavid Cohen <david.a.cohen@linux.intel.com>
Thu, 16 Jan 2014 23:07:02 +0000 (15:07 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 16 Jan 2014 23:06:29 +0000 (15:06 -0800)
commit93037f4fcd41f674f3df461d2534ae822db6bfc8
tree5cb68cea7fa4f3535b5b6a2bcf1fa1d919fe0bd0
parentca8e5b7104e78f8d595c26aef00d74c054b3a942
x86, intel-mid: sfi_handle_*_dev() should check for pdata error code

When Intel MID finds a match between SFI table from FW and registered
SFI devices, it will always register a device regardless the platform
code was successful or not.

This patch adds an extra option for platform code to return error code
and abort device registration on SFI table parsing.

This patch does not contain any functional changes for current intel
mid platform code.

Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Link: http://lkml.kernel.org/r/1389913624-9149-2-git-send-email-david.a.cohen@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/platform/intel-mid/sfi.c