Skip to contentSkip to conversation

- section drivers/acpi/asus_acpi.c.

Kernel-janitors Luiz Fernando Capitulino 2 participants 3 messages Mar 19, 2004 – Mar 22, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
diff -Nparu linux-2.6.5-rc1/drivers/acpi/asus_acpi.c linux-2.6.5-rc1~/drivers/acpi/asus_acpi.c
@@ -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
#1 lore raw

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

#2 lore raw
In reply to Luiz Fernando Capitulino

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 function acpi_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