From: Thomas Renninger Date: Thu, 8 Mar 2007 16:57:31 +0000 (+0100) Subject: ACPI: asus_acpi: Do not load if no device has been found X-Git-Tag: v2.6.23-rc1~17^2~7^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4d49531dcc2f334205d99614164ea900216b1cb;p=pandora-kernel.git ACPI: asus_acpi: Do not load if no device has been found asus_acpi_init() has a hack to prevent the driver from loading when asus_hotk_add() fails. However, it was returning the successful return value of acpi_bug_registger_driver() on failure. This caused an oops on unload. Instead it should return -ENODEV. Signed-off-by: Thomas Renninger Signed-off-by: Len Brown --- Reading git-diff-tree failed