aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1/w1_int.c
diff options
context:
space:
mode:
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>2006-04-04 12:35:22 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-22 14:22:50 -0400
commit2c5bfdac33607a618d8cf1532ef235ca9eccd49e (patch)
tree77786a135938d368db3d386ab864fc9d8d50c153 /drivers/w1/w1_int.c
parent339f07236b481371ffb4993cf309dd1f1b3382ab (diff)
[PATCH] W1: cleanups
Nice cleanup spotted by Adrian Bunk, which was lost due to moving to the completely new functionality. Shame-shame-shame on me. 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.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c
index 24e7c102fa75..475996cd1b7d 100644
--- a/drivers/w1/w1_int.c
+++ b/drivers/w1/w1_int.c
@@ -30,16 +30,6 @@
30 30
31static u32 w1_ids = 1; 31static u32 w1_ids = 1;
32 32
33extern struct device_driver w1_master_driver;
34extern struct bus_type w1_bus_type;
35extern struct device w1_master_device;
36extern int w1_max_slave_count;
37extern int w1_max_slave_ttl;
38extern struct list_head w1_masters;
39extern struct mutex w1_mlock;
40
41extern int w1_process(void *);
42
43static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl, 33static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl,
44 struct device_driver *driver, 34 struct device_driver *driver,
45 struct device *device) 35 struct device *device)
@@ -96,7 +86,7 @@ static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl,
96 return dev; 86 return dev;
97} 87}
98 88
99void w1_free_dev(struct w1_master *dev) 89static void w1_free_dev(struct w1_master *dev)
100{ 90{
101 device_unregister(&dev->dev); 91 device_unregister(&dev->dev);
102} 92}