You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
339f07236b
commit
2c5bfdac33
+1
-11
@@ -30,16 +30,6 @@
|
||||
|
||||
static u32 w1_ids = 1;
|
||||
|
||||
extern struct device_driver w1_master_driver;
|
||||
extern struct bus_type w1_bus_type;
|
||||
extern struct device w1_master_device;
|
||||
extern int w1_max_slave_count;
|
||||
extern int w1_max_slave_ttl;
|
||||
extern struct list_head w1_masters;
|
||||
extern struct mutex w1_mlock;
|
||||
|
||||
extern int w1_process(void *);
|
||||
|
||||
static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl,
|
||||
struct device_driver *driver,
|
||||
struct device *device)
|
||||
@@ -96,7 +86,7 @@ static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl,
|
||||
return dev;
|
||||
}
|
||||
|
||||
void w1_free_dev(struct w1_master *dev)
|
||||
static void w1_free_dev(struct w1_master *dev)
|
||||
{
|
||||
device_unregister(&dev->dev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user