Re: [patch 09/26] ACPI: update asus_acpi driver registration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



akpm@xxxxxxxx <akpm@xxxxxxxx> :
[...]
> diff -puN drivers/acpi/asus_acpi.c~acpi-update-asus_acpi-driver-registration drivers/acpi/asus_acpi.c
> --- devel/drivers/acpi/asus_acpi.c~acpi-update-asus_acpi-driver-registration	2006-03-28 14:03:03.000000000 -0800
> +++ devel-akpm/drivers/acpi/asus_acpi.c	2006-03-28 14:03:03.000000000 -0800
[...]
> @@ -1226,7 +1230,19 @@ static int __init asus_acpi_init(void)
>  	asus_proc_dir->owner = THIS_MODULE;
>  
>  	result = acpi_bus_register_driver(&asus_hotk_driver);
> -	if (result < 1) {
> +	if (result < 0) {
> +		remove_proc_entry(PROC_ASUS, acpi_root_dir);
> +		return -ENODEV;
> +	}

acpi_bus_register_driver() returns a licit < 0 status code. Why should
it be overwritten ?

-- 
Ueimor
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux