Skip to content

Commit

Permalink
asus-laptop: Remove uneccesary acpi_disabled check
Browse files Browse the repository at this point in the history
acpi_bus_register_driver() already checks acpi_disabled, so acpi bus
drivers don't need to.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Alan Jenkins authored and Len Brown committed Dec 9, 2009
1 parent 2d5db0b commit b7fab7a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1438,9 +1438,6 @@ static int __init asus_laptop_init(void)
{
int result;

if (acpi_disabled)
return -ENODEV;

result = acpi_bus_register_driver(&asus_hotk_driver);
if (result < 0)
return result;
Expand Down

0 comments on commit b7fab7a

Please sign in to comment.