git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
net
/
bluetooth
/
hci_sysfs.c
diff --git
a/net/bluetooth/hci_sysfs.c
b/net/bluetooth/hci_sysfs.c
index
7856bc2
..
0ed3874
100644
(file)
--- a/
net/bluetooth/hci_sysfs.c
+++ b/
net/bluetooth/hci_sysfs.c
@@
-78,7
+78,7
@@
static struct class_device_attribute *bt_attrs[] = {
};
#ifdef CONFIG_HOTPLUG
};
#ifdef CONFIG_HOTPLUG
-static int bt_
hotplug
(struct class_device *cdev, char **envp, int num_envp, char *buf, int size)
+static int bt_
uevent
(struct class_device *cdev, char **envp, int num_envp, char *buf, int size)
{
struct hci_dev *hdev = class_get_devdata(cdev);
int n, i = 0;
{
struct hci_dev *hdev = class_get_devdata(cdev);
int n, i = 0;
@@
-103,14
+103,16
@@
static void bt_release(struct class_device *cdev)
kfree(hdev);
}
kfree(hdev);
}
-st
atic st
ruct class bt_class = {
+struct class bt_class = {
.name = "bluetooth",
.release = bt_release,
#ifdef CONFIG_HOTPLUG
.name = "bluetooth",
.release = bt_release,
#ifdef CONFIG_HOTPLUG
- .
hotplug = bt_hotplug
,
+ .
uevent = bt_uevent
,
#endif
};
#endif
};
+EXPORT_SYMBOL_GPL(bt_class);
+
int hci_register_sysfs(struct hci_dev *hdev)
{
struct class_device *cdev = &hdev->class_dev;
int hci_register_sysfs(struct hci_dev *hdev)
{
struct class_device *cdev = &hdev->class_dev;