/* Bluetooth address family and sockets. */
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h>
#define BT_DBG(D...)
#endif
-#define VERSION "2.10"
+#define VERSION "2.8"
/* Bluetooth sockets */
#define BT_MAX_PROTO 8
static int __init bt_init(void)
{
- int err;
-
BT_INFO("Core ver %s", VERSION);
- err = bt_sysfs_init();
- if (err < 0)
- return err;
-
- err = sock_register(&bt_sock_family_ops);
- if (err < 0) {
- bt_sysfs_cleanup();
- return err;
- }
+ sock_register(&bt_sock_family_ops);
BT_INFO("HCI device and connection manager initialized");
+ bt_sysfs_init();
+
hci_sock_init();
return 0;
{
hci_sock_cleanup();
- sock_unregister(PF_BLUETOOTH);
-
bt_sysfs_cleanup();
+
+ sock_unregister(PF_BLUETOOTH);
}
subsys_initcall(bt_init);