[PATCH] powerpc: set the driver.owner field for all vio drivers
Stephen Rothwell
sfr at canb.auug.org.au
Mon Oct 24 17:01:00 EST 2005
This will create a link from the driver to the module in sysfs.
Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
---
drivers/block/viodasd.c | 3 ++-
drivers/cdrom/viocd.c | 3 ++-
drivers/char/hvcs.c | 1 +
drivers/char/viotape.c | 3 ++-
drivers/net/ibmveth.c | 2 +-
drivers/net/iseries_veth.c | 1 +
drivers/scsi/ibmvscsi/ibmvscsi.c | 3 ++-
7 files changed, 11 insertions(+), 5 deletions(-)
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
a6cfb870abff38ce9aa574d56cb71524fc4660e1
diff --git a/drivers/block/viodasd.c b/drivers/block/viodasd.c
--- a/drivers/block/viodasd.c
+++ b/drivers/block/viodasd.c
@@ -778,14 +778,15 @@ static struct vio_device_id viodasd_devi
{ "viodasd", "" },
{ "", "" }
};
-
MODULE_DEVICE_TABLE(vio, viodasd_device_table);
+
static struct vio_driver viodasd_driver = {
.id_table = viodasd_device_table,
.probe = viodasd_probe,
.remove = viodasd_remove,
.driver = {
.name = "viodasd",
+ .owner = THIS_MODULE,
}
};
diff --git a/drivers/cdrom/viocd.c b/drivers/cdrom/viocd.c
--- a/drivers/cdrom/viocd.c
+++ b/drivers/cdrom/viocd.c
@@ -736,14 +736,15 @@ static struct vio_device_id viocd_device
{ "viocd", "" },
{ "", "" }
};
-
MODULE_DEVICE_TABLE(vio, viocd_device_table);
+
static struct vio_driver viocd_driver = {
.id_table = viocd_device_table,
.probe = viocd_probe,
.remove = viocd_remove,
.driver = {
.name = "viocd",
+ .owner = THIS_MODULE,
}
};
diff --git a/drivers/char/hvcs.c b/drivers/char/hvcs.c
--- a/drivers/char/hvcs.c
+++ b/drivers/char/hvcs.c
@@ -725,6 +725,7 @@ static struct vio_driver hvcs_vio_driver
.remove = hvcs_remove,
.driver = {
.name = hvcs_driver_name,
+ .owner = THIS_MODULE,
}
};
diff --git a/drivers/char/viotape.c b/drivers/char/viotape.c
--- a/drivers/char/viotape.c
+++ b/drivers/char/viotape.c
@@ -993,14 +993,15 @@ static struct vio_device_id viotape_devi
{ "viotape", "" },
{ "", "" }
};
-
MODULE_DEVICE_TABLE(vio, viotape_device_table);
+
static struct vio_driver viotape_driver = {
.id_table = viotape_device_table,
.probe = viotape_probe,
.remove = viotape_remove,
.driver = {
.name = "viotape",
+ .owner = THIS_MODULE,
}
};
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c
--- a/drivers/net/ibmveth.c
+++ b/drivers/net/ibmveth.c
@@ -1146,7 +1146,6 @@ static struct vio_device_id ibmveth_devi
{ "network", "IBM,l-lan"},
{ "", "" }
};
-
MODULE_DEVICE_TABLE(vio, ibmveth_device_table);
static struct vio_driver ibmveth_driver = {
@@ -1155,6 +1154,7 @@ static struct vio_driver ibmveth_driver
.remove = ibmveth_remove,
.driver = {
.name = ibmveth_driver_name,
+ .owner = THIS_MODULE,
}
};
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c
--- a/drivers/net/iseries_veth.c
+++ b/drivers/net/iseries_veth.c
@@ -1653,6 +1653,7 @@ static struct vio_driver veth_driver = {
.remove = veth_remove,
.driver = {
.name = DRV_NAME,
+ .owner = THIS_MODULE,
}
};
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -1543,14 +1543,15 @@ static struct vio_device_id ibmvscsi_dev
{"vscsi", "IBM,v-scsi"},
{ "", "" }
};
-
MODULE_DEVICE_TABLE(vio, ibmvscsi_device_table);
+
static struct vio_driver ibmvscsi_driver = {
.id_table = ibmvscsi_device_table,
.probe = ibmvscsi_probe,
.remove = ibmvscsi_remove,
.driver = {
.name = "ibmvscsi",
+ .owner = THIS_MODULE,
}
};
More information about the Linuxppc64-dev
mailing list