diff options
author | Len Brown <len.brown@intel.com> | 2005-12-06 17:31:30 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-12-06 17:31:30 -0500 |
commit | 3d5271f9883cba7b54762bc4fe027d4172f06db7 (patch) | |
tree | ab8a881a14478598a0c8bda0d26c62cdccfffd6d /drivers/w1 | |
parent | 378b2556f4e09fa6f87ff0cb5c4395ff28257d02 (diff) | |
parent | 9115a6c787596e687df03010d97fccc5e0762506 (diff) |
Pull release into acpica branch
Diffstat (limited to 'drivers/w1')
-rw-r--r-- | drivers/w1/w1.c | 3 | ||||
-rw-r--r-- | drivers/w1/w1_ds2433.c | 6 | ||||
-rw-r--r-- | drivers/w1/w1_family.c | 1 |
3 files changed, 4 insertions, 6 deletions
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index 1b6b74c116a9..14016b1cd948 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c | |||
@@ -77,8 +77,7 @@ static void w1_master_release(struct device *dev) | |||
77 | 77 | ||
78 | dev_dbg(dev, "%s: Releasing %s.\n", __func__, md->name); | 78 | dev_dbg(dev, "%s: Releasing %s.\n", __func__, md->name); |
79 | 79 | ||
80 | if (md->nls && md->nls->sk_socket) | 80 | dev_fini_netlink(md); |
81 | sock_release(md->nls->sk_socket); | ||
82 | memset(md, 0, sizeof(struct w1_master) + sizeof(struct w1_bus_master)); | 81 | memset(md, 0, sizeof(struct w1_master) + sizeof(struct w1_bus_master)); |
83 | kfree(md); | 82 | kfree(md); |
84 | } | 83 | } |
diff --git a/drivers/w1/w1_ds2433.c b/drivers/w1/w1_ds2433.c index 279e0e0363d6..1e3d98aac12d 100644 --- a/drivers/w1/w1_ds2433.c +++ b/drivers/w1/w1_ds2433.c | |||
@@ -299,10 +299,8 @@ static int w1_f23_add_slave(struct w1_slave *sl) | |||
299 | static void w1_f23_remove_slave(struct w1_slave *sl) | 299 | static void w1_f23_remove_slave(struct w1_slave *sl) |
300 | { | 300 | { |
301 | #ifdef CONFIG_W1_F23_CRC | 301 | #ifdef CONFIG_W1_F23_CRC |
302 | if (sl->family_data) { | 302 | kfree(sl->family_data); |
303 | kfree(sl->family_data); | 303 | sl->family_data = NULL; |
304 | sl->family_data = NULL; | ||
305 | } | ||
306 | #endif /* CONFIG_W1_F23_CRC */ | 304 | #endif /* CONFIG_W1_F23_CRC */ |
307 | sysfs_remove_bin_file(&sl->dev.kobj, &w1_f23_bin_attr); | 305 | sysfs_remove_bin_file(&sl->dev.kobj, &w1_f23_bin_attr); |
308 | } | 306 | } |
diff --git a/drivers/w1/w1_family.c b/drivers/w1/w1_family.c index 88c517a4c178..9e293e139a0e 100644 --- a/drivers/w1/w1_family.c +++ b/drivers/w1/w1_family.c | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include <linux/spinlock.h> | 22 | #include <linux/spinlock.h> |
23 | #include <linux/list.h> | 23 | #include <linux/list.h> |
24 | #include <linux/sched.h> /* schedule_timeout() */ | ||
24 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
25 | 26 | ||
26 | #include "w1_family.h" | 27 | #include "w1_family.h" |