Re: [PATCH] Make it possible to compile in the Bluetooth subsystem

From: Maksim (Max) Krasnyanskiy (maxk@qualcomm.com)
Date: Mon Oct 07 2002 - 17:40:40 EST


Marcel,

>@@ -345,7 +345,7 @@
> return 0;
> }
>
>-static void __exit bluez_cleanup(void)
>+void __exit bluez_cleanup(void)
> {
> hci_sock_cleanup();
> hci_core_cleanup();
>@@ -356,11 +356,9 @@
> remove_proc_entry("bluetooth", NULL);
> }
>
>-#ifdef MODULE
> module_init(bluez_init);
> module_exit(bluez_cleanup);
>
> MODULE_AUTHOR("Maxim Krasnyansky <maxk@qualcomm.com>");
> MODULE_DESCRIPTION("BlueZ Core ver " VERSION);
> MODULE_LICENSE("GPL");
>-#endif
This is wrong. If Bluetooth is compiled in, bluez_init() is called from
linux/net/socket.c. We have to change that to subsys_initcall.

Linus, please don't apply. We'll send correct patch later.

Thanks
Max

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:01:01 EST