]> Pileus Git - ~andy/linux/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)
commitacb20d7395f75b0fdb5b300f9fb3b9c6054fb04f
tree5cb68cea7fa4f3535b5b6a2bcf1fa1d919fe0bd0
parent4cb9b00f42e07830310319a07e6c91413ee8153e
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