Skip to contentSkip to conversation

crypto: hifn_795x - fix __dev{init,exit} markings

PATCH Applied Mike Frysinger 3 participants 3 messages May 18, 2009 – May 27, 2009 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: hifn_795x - fix __dev{init,exit} markings

The remove member of the pci_driver hifn_pci_driver uses __devexit_p(), so the remove function itself should be marked with __devexit. And where there be __devexit on the remove, so is there __devinit on the probe.

Similarly, the module_init/module_exit functions should be declared with plain __init/__exit markings, not the hotplug __dev{init,exit} ones.

CC Evgeniy Polyakov <[email protected]>
CC Patrick McHardy <[email protected]>
---
 drivers/crypto/hifn_795x.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/crypto/hifn_795x.c +4 -4
index 2bef086..5f753fc 100644
@@ -2564,7 +2564,7 @@ static void hifn_tasklet_callback(unsigned long data)
 		hifn_process_queue(dev);
 }
 
-static int hifn_probe(struct pci_dev *pdev, const struct pci_device_id *id)
+static int __devinit hifn_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 {
 	int err, i;
 	struct hifn_device *dev;
@@ -2696,7 +2696,7 @@ err_out_disable_pci_device:
 	return err;
 }
 
-static void hifn_remove(struct pci_dev *pdev)
+static void __devexit hifn_remove(struct pci_dev *pdev)
 {
 	int i;
 	struct hifn_device *dev;
@@ -2744,7 +2744,7 @@ static struct pci_driver hifn_pci_driver = {
 	.remove   = __devexit_p(hifn_remove),
 };
 
-static int __devinit hifn_init(void)
+static int __init hifn_init(void)
 {
 	unsigned int freq;
 	int err;
@@ -2789,7 +2789,7 @@ static int __devinit hifn_init(void)
 	return 0;
 }
 
-static void __devexit hifn_fini(void)
+static void __exit hifn_fini(void)
 {
 	pci_unregister_driver(&hifn_pci_driver);
 
Signature · 1 line
1.6.3
#1 lore raw

Hi Mike.

Quoted 10 lines · Mike Frysinger

The remove member of the pci_driver hifn_pci_driver uses __devexit_p(), so the remove function itself should be marked with __devexit. And where there be __devexit on the remove, so is there __devinit on the probe.

Similarly, the module_init/module_exit functions should be declared with plain __init/__exit markings, not the hotplug __dev{init,exit} ones.

CC Evgeniy Polyakov <[email protected]>
CC Patrick McHardy <[email protected]>

Looks good, thank you Mike.
Ack. Herbert, please apply.

Signature · 1 line
	Evgeniy Polyakov
maintainer Applied
#2 lore raw
Quoted 10 lines · Evgeniy Polyakov

Hi Mike.

Quoted 7 lines · Mike Frysinger

The remove member of the pci_driver hifn_pci_driver uses __devexit_p(), so the remove function itself should be marked with __devexit. And where there be __devexit on the remove, so is there __devinit on the probe.

Similarly, the module_init/module_exit functions should be declared with plain __init/__exit markings, not the hotplug __dev{init,exit} ones.

Quoted 6 lines
Quoted 3 lines
CC Evgeniy Polyakov <[email protected]>
CC Patrick McHardy <[email protected]>

Looks good, thank you Mike.
Ack. Herbert, please apply.

Applied to cryptodev. Thanks a lot!

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt