From: Kenji Kaneshige Date: Tue, 16 Jun 2009 02:00:47 +0000 (+0900) Subject: PCI hotplug: fix return value of has_foo() functions X-Git-Tag: v2.6.31-rc1~62^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=498a8faf2c7eb974f70b7c5a60a31f0d48c35d44;p=pandora-kernel.git PCI hotplug: fix return value of has_foo() functions Current has_foo() functions in pci_hotplug_core.c returns 0 if the "foo" property is true. It would cause misunderstanding. In addition, the error code of those functions is never checked, so this patch changes those functions' error code to 'bool' and return true if the property "foo" is true. Signed-off-by: Kenji Kaneshige Reviewed-by: Alex Chiang Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed