]> git.hungrycats.org Git - linux/commitdiff
[PATCH] cs4232 should be devexit
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 8 Apr 2003 02:45:05 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 8 Apr 2003 02:45:05 +0000 (19:45 -0700)
sound/oss/cs4232.c

index d0e368de32fe85f5dde1b03f51a418cc10c15e65..3d218f341a1b5b9cea44ae3f2e971034dc628a17 100644 (file)
@@ -313,7 +313,7 @@ void __init attach_cs4232(struct address_info *hw_config)
        }
 }
 
-static void __exit unload_cs4232(struct address_info *hw_config)
+static void __devexit unload_cs4232(struct address_info *hw_config)
 {
        int base = hw_config->io_base, irq = hw_config->irq;
        int dma1 = hw_config->dma, dma2 = hw_config->dma2;
@@ -428,7 +428,7 @@ static int cs4232_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev
        return 0;
 }
 
-static void cs4232_pnp_remove(struct pnp_dev *dev)
+static void __devexit cs4232_pnp_remove(struct pnp_dev *dev)
 {
        struct address_info *cfg = pnp_get_drvdata(dev);
        if (cfg) {
@@ -441,7 +441,7 @@ static struct pnp_driver cs4232_driver = {
        .name           = "cs4232",
        .id_table       = cs4232_pnp_table,
        .probe          = cs4232_pnp_probe,
-       .remove         = cs4232_pnp_remove,
+       .remove         = __devexit_p(cs4232_pnp_remove),
 };
 
 static int __init init_cs4232(void)