diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-07-03 04:02:41 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-07-03 22:54:02 -0400 |
commit | a91f2e396f5b32b21d842b4757bc8de5e88eac66 (patch) | |
tree | 174b88a20feea87734bf63ec7104eae0b205649a /net/bluetooth/l2cap.c | |
parent | 27d35284258c596900e0e41c46932ec4abe6a7b1 (diff) |
[Bluetooth] Use real devices for host controllers
This patch converts the Bluetooth class devices into real devices. The
Bluetooth class is kept and the driver core provides the appropriate
symlinks for backward compatibility.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r-- | net/bluetooth/l2cap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 770101177da1..f6501fa0d59f 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -2219,7 +2219,7 @@ static int __init l2cap_init(void) | |||
2219 | goto error; | 2219 | goto error; |
2220 | } | 2220 | } |
2221 | 2221 | ||
2222 | class_create_file(&bt_class, &class_attr_l2cap); | 2222 | class_create_file(bt_class, &class_attr_l2cap); |
2223 | 2223 | ||
2224 | BT_INFO("L2CAP ver %s", VERSION); | 2224 | BT_INFO("L2CAP ver %s", VERSION); |
2225 | BT_INFO("L2CAP socket layer initialized"); | 2225 | BT_INFO("L2CAP socket layer initialized"); |
@@ -2233,7 +2233,7 @@ error: | |||
2233 | 2233 | ||
2234 | static void __exit l2cap_exit(void) | 2234 | static void __exit l2cap_exit(void) |
2235 | { | 2235 | { |
2236 | class_remove_file(&bt_class, &class_attr_l2cap); | 2236 | class_remove_file(bt_class, &class_attr_l2cap); |
2237 | 2237 | ||
2238 | if (bt_sock_unregister(BTPROTO_L2CAP) < 0) | 2238 | if (bt_sock_unregister(BTPROTO_L2CAP) < 0) |
2239 | BT_ERR("L2CAP socket unregistration failed"); | 2239 | BT_ERR("L2CAP socket unregistration failed"); |