]> 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)
commitac658b36fded3d3a1caca15d99b3072b34a40a01
tree5cb68cea7fa4f3535b5b6a2bcf1fa1d919fe0bd0
parent3301ff9bb6f45336d00f24a7e532e68b6e912e09
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