|
From: Kenn H. <ke...@us...> - 2005-02-28 22:48:01
|
Update of /cvsroot/linux-vax/kernel-2.5/drivers/vax/scsi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10499/drivers/vax/scsi Modified Files: vax-5380.c Log Message: Add plumbing for driver unloading to silence warning about NCR5380_exit being unused. Also add module license. Index: vax-5380.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/drivers/vax/scsi/vax-5380.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- vax-5380.c 24 Feb 2005 23:35:00 -0000 1.5 +++ vax-5380.c 28 Feb 2005 22:47:49 -0000 1.6 @@ -50,7 +50,8 @@ #include "../../scsi/NCR5380.c" -const char *vax_5380_info (struct Scsi_Host *spnt) { +const char *vax_5380_info (struct Scsi_Host *spnt) +{ return ""; } @@ -124,17 +125,41 @@ return retval; } +static void __devexit vax_5380_remove(struct vsbus_device *vsbus_dev) +{ + struct Scsi_Host *host = dev_get_drvdata(&vsbus_dev->dev); + + scsi_remove_host(host); + + vsbus_free_irq(host->irq); + NCR5380_exit(host); + iounmap((void *)host->base); + + scsi_host_put(host); +} + static struct vsbus_driver vax_5380_driver = { .probe = vax_5380_probe, + .remove = __devexit_p(vax_5380_remove), .drv = { .name = "vax-5380", }, }; -int __init vax_5380_init(void) +static int __init vax_5380_init(void) { return vsbus_register_driver(&vax_5380_driver); } -device_initcall(vax_5380_init); +static void __exit vax_5380_exit(void) +{ + vsbus_unregister_driver(&vax_5380_driver); +} + +module_init(vax_5380_init); +module_exit(vax_5380_exit); + +MODULE_AUTHOR("Kenn Humborg"); +MODULE_DESCRIPTION("VAX NCR5380 SCSI driver for KA42,KA43"); +MODULE_LICENSE("GPL"); |