toshiba_acpi: Don't add devices for unsupported features
authorSeth Forshee <seth.forshee@canonical.com>
Tue, 20 Sep 2011 21:55:53 +0000 (16:55 -0500)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:36 +0000 (16:52 +0200)
commit36d03f93558c66527e5dbf602cb2eb4ccbd899a6
tree058ea19223d9962fbb92b2409cb1c16b478ee9ae
parenta540d6b5b577f5a320d873a9cc8778ff20bf5ddf
toshiba_acpi: Don't add devices for unsupported features

Test for features up-front to determine whether or not they are
supported, and avoid creating devices and proc files for
unsupported features.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/toshiba_acpi.c