[RFC/PATCH 6/22] W1: drop owner field from master and slave structures

From: Dmitry Torokhov
Date: Thu Apr 21 2005 - 02:52:51 EST


W1: drop owner field from w1_master and w1_slave structures.
Just having it there does not magically fixes lifetime
rules.

Signed-off-by: Dmitry Torokhov <dtor@xxxxxxx>
---

w1.c | 1 -
w1.h | 2 --
w1_int.c | 1 -
3 files changed, 4 deletions(-)

Index: dtor/drivers/w1/w1_int.c
===================================================================
--- dtor.orig/drivers/w1/w1_int.c
+++ dtor/drivers/w1/w1_int.c
@@ -60,7 +60,6 @@ struct w1_master * w1_alloc_dev(u32 id,

dev->bus_master = (struct w1_bus_master *)(dev + 1);

- dev->owner = THIS_MODULE;
dev->max_slave_count = slave_count;
dev->slave_count = 0;
dev->attempts = 0;
Index: dtor/drivers/w1/w1.c
===================================================================
--- dtor.orig/drivers/w1/w1.c
+++ dtor/drivers/w1/w1.c
@@ -407,7 +407,6 @@ static int w1_attach_slave_device(struct

memset(sl, 0, sizeof(*sl));

- sl->owner = THIS_MODULE;
sl->master = dev;
set_bit(W1_SLAVE_ACTIVE, &sl->flags);

Index: dtor/drivers/w1/w1.h
===================================================================
--- dtor.orig/drivers/w1/w1.h
+++ dtor/drivers/w1/w1.h
@@ -64,7 +64,6 @@ struct w1_reg_num

struct w1_slave
{
- struct module *owner;
unsigned char name[W1_MAXNAMELEN];
struct list_head node;
struct w1_reg_num reg_num;
@@ -108,7 +107,6 @@ struct w1_bus_master
struct w1_master
{
struct list_head node;
- struct module *owner;
unsigned char name[W1_MAXNAMELEN];
struct list_head slist;
int max_slave_count, slave_count;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/