[PATCH 3/3] ibmveth: Add a shutdown() function to ibmveth
Michael Ellerman
michael at ellerman.id.au
Thu Aug 4 17:15:00 EST 2005
Add a shutdown() function to the ibmveth driver. Simply calling
ibmveth_remove() appears to be sufficient.
I think I need to remove __devexit from ibmveth_remove(), because it
will be called even when the driver's built in.
Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
drivers/net/ibmveth.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: kexec/drivers/net/ibmveth.c
===================================================================
--- kexec.orig/drivers/net/ibmveth.c
+++ kexec/drivers/net/ibmveth.c
@@ -994,7 +994,7 @@ static int __devinit ibmveth_probe(struc
return 0;
}
-static int __devexit ibmveth_remove(struct vio_dev *dev)
+static int ibmveth_remove(struct vio_dev *dev)
{
struct net_device *netdev = dev->dev.driver_data;
struct ibmveth_adapter *adapter = netdev->priv;
@@ -1153,7 +1153,8 @@ static struct vio_driver ibmveth_driver
.name = (char *)ibmveth_driver_name,
.id_table = ibmveth_device_table,
.probe = ibmveth_probe,
- .remove = ibmveth_remove
+ .remove = ibmveth_remove,
+ .shutdown = ibmveth_remove
};
static int __init ibmveth_module_init(void)
More information about the Linuxppc64-dev
mailing list