• Sasha Levin's avatar
    usb: fix breakage on systems without ACPI · ea79c2ed
    Sasha Levin authored
    Commit da0af6e7 ("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: default avatarSasha Levin <levinsasha928@gmail.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    ea79c2ed
usb.c 30.1 KB