]> git.hungrycats.org Git - linux/commitdiff
[PATCH] 8250_pnp: probe and remove can be __devinit/__devexit
authorAndrew Morton <akpm@osdl.org>
Thu, 18 Mar 2004 23:00:55 +0000 (15:00 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 18 Mar 2004 23:00:55 +0000 (15:00 -0800)
From: "Randy.Dunlap" <rddunlap@osdl.org>

From: Luiz Fernando Capitulino <lcapitulino@prefeitura.sp.gov.br>

drivers/serial/8250_pnp.c

index ea970e18b946e20e3d8a6a1b6824fe30faef3326..d9418076ca8ccfcd3fa46df0280a11b1bed78c28 100644 (file)
@@ -390,7 +390,7 @@ static int __devinit serial_pnp_guess_board(struct pnp_dev *dev, int *flags)
        return -ENODEV;
 }
 
-static int
+static int __devinit
 serial_pnp_probe(struct pnp_dev * dev, const struct pnp_device_id *dev_id)
 {
        struct serial_struct serial_req;
@@ -420,7 +420,7 @@ serial_pnp_probe(struct pnp_dev * dev, const struct pnp_device_id *dev_id)
 
 }
 
-static void serial_pnp_remove(struct pnp_dev * dev)
+static void __devexit serial_pnp_remove(struct pnp_dev * dev)
 {
        int line = (int)pnp_get_drvdata(dev);
        if (line)