- section drivers/acpi/asus_acpi.c.
Subsystems (2)
Hi all,
I need to be more descriptive in this patches. :-)
asus_hotk_remove() is only called when drivers is being
removed.
drivers/acpi/asus_acpi.c +1 -1
@@ -1097,7 +1097,7 @@ static int __init asus_hotk_add(struct a } -static int asus_hotk_remove (struct acpi_device *device,int type) +static int __exit asus_hotk_remove(struct acpi_device *device, int type) {acpi_status status =0 ;struct asus_hotk *hotk =NULL ;
Signature · 8 lines
Luiz Fernando N. Capitulino <[email protected]> <http://www.telecentros.sp.gov.br> _______________________________________________ Kernel-janitors mailing list [email protected] http://lists.osdl.org/mailman/listinfo/kernel-janitors
On Fri, 19 Mar 2004 16:31:43 -0300 Luiz Fernando Capitulino wrote:
| Hi all, | | I need to be more descriptive in this patches. :-)
Yes, everyone does. I appreciate you doing that.
| asus_hotk_remove() is only called when drivers is being | removed.
Hm, how did you come to this conclusion? I don't see that as I look at drivers/acpi/scan.c, around line # 262,
in function acpi_bus_driver_init(): <<< note the "init" >>>
if (driver->ops.start) {
result = driver->ops.start(device);
if (result && driver->ops.remove)
driver->ops.remove(device, ACPI_BUS_REMOVAL_NORMAL);
return_VALUE(result);
}| diff -Nparu linux-2.6.5-rc1/drivers/acpi/asus_acpi.c linux-2.6.5-rc1~/drivers/acpi/asus_acpi.c
| --- linux-2.6.5-rc1/drivers/acpi/asus_acpi.c 2004-02-18 15:54:21.000000000 -0300
| +++ linux-2.6.5-rc1~/drivers/acpi/asus_acpi.c 2004-03-16 19:15:33.000000000 -0300
| @@ -1097,7 +1097,7 @@ static int __init asus_hotk_add(struct a
| }
|
|
| -static int asus_hotk_remove(struct acpi_device *device, int type)
| +static int __exit asus_hotk_remove(struct acpi_device *device, int type)
| {
| acpi_status status = 0;
| struct asus_hotk *hotk = NULL;--
~Randy
"You can't do anything without having to do something else first." -- Belefant's Law
_______________________________________________
Kernel-janitors mailing list [email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Hi Randy,
Em Sex, 2004-03-19 às 21:11, Randy.Dunlap escreveu:
Quoted 7 lines
|
asus_hotk_remove()is only called when drivers is being | removed.Hm, how did you come to this conclusion? I don't see that as I look at
drivers/acpi/scan.c, around line # 262,
in functionacpi_bus_driver_init(): <<< note the "init" >>>
Quoted 6 lines
if (driver->ops.start) {
result = driver->ops.start(device);
if (result && driver->ops.remove)
driver->ops.remove(device, ACPI_BUS_REMOVAL_NORMAL);
return_VALUE(result);
}yes... I did not saw this, drop it please.
I need to be more careful doing this little patches. :-|
thanks,
Signature · 9 lines
Luiz Fernando N. Capitulino <[email protected]> <http://www.telecentros.sp.gov.br> _______________________________________________ Kernel-janitors mailing list [email protected] http://lists.osdl.org/mailman/listinfo/kernel-janitors