]> git.baikalelectronics.ru Git - kernel.git/commit
usb: fix breakage on systems without ACPI
authorSasha Levin <levinsasha928@gmail.com>
Wed, 16 May 2012 12:11:15 +0000 (14:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2012 12:29:19 +0000 (05:29 -0700)
commit84a7de7b47b91860428c7ce53713f4e4238a7990
tree81b19ac4ed9381e20d8088da4088e5e343b02404
parent78aadf91c03cf4528f5d6ff6d6f68638e5896842
usb: fix breakage on systems without ACPI

Commit 4e3f208 ("usb: Bind devices to ACPI devices when possible") really
tries to force-bind devices even when impossible, unlike what it says in
the subject.

CONFIG_ACPI is not an indication that ACPI tables are actually present, nor
is an indication that any USB relevant information is present in them. There
is no reason to fail the creation of a USB bus if it can't bind it to
ACPI device during initialization.

On systems with CONFIG_ACPI set but without ACPI tables it would cause a
boot panic.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/usb.c