aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1/w1_int.c
diff options
context:
space:
mode:
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>2005-08-11 05:20:07 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-08 17:41:26 -0400
commit7f772ed8df27c6941952452330c618512389c4c7 (patch)
tree6ad8320e0ee8bd2f4709176381662460ec4b1e45 /drivers/w1/w1_int.c
parent8949d2aa05ddf5e9a31d738568a79915970cb38e (diff)
[PATCH] w1: hotplug support.
Here is W1 hotplug in addition to netlink notifications. Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/w1_int.c')
-rw-r--r--drivers/w1/w1_int.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c
index 2a538d012194..c13724fd0971 100644
--- a/drivers/w1/w1_int.c
+++ b/drivers/w1/w1_int.c
@@ -29,9 +29,9 @@
29 29
30static u32 w1_ids = 1; 30static u32 w1_ids = 1;
31 31
32extern struct device_driver w1_driver; 32extern struct device_driver w1_master_driver;
33extern struct bus_type w1_bus_type; 33extern struct bus_type w1_bus_type;
34extern struct device w1_device; 34extern struct device w1_master_device;
35extern int w1_max_slave_count; 35extern int w1_max_slave_count;
36extern int w1_max_slave_ttl; 36extern int w1_max_slave_ttl;
37extern struct list_head w1_masters; 37extern struct list_head w1_masters;
@@ -125,7 +125,7 @@ int w1_add_master_device(struct w1_bus_master *master)
125 return(-EINVAL); 125 return(-EINVAL);
126 } 126 }
127 127
128 dev = w1_alloc_dev(w1_ids++, w1_max_slave_count, w1_max_slave_ttl, &w1_driver, &w1_device); 128 dev = w1_alloc_dev(w1_ids++, w1_max_slave_count, w1_max_slave_ttl, &w1_master_driver, &w1_master_device);
129 if (!dev) 129 if (!dev)
130 return -ENOMEM; 130 return -ENOMEM;
131 131