All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypto: geode-aes: Use module_pci_driver
@ 2012-08-27 10:15 Sachin Kamat
  2012-09-06  4:11 ` Sachin Kamat
  2012-09-06 20:21 ` Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Sachin Kamat @ 2012-08-27 10:15 UTC (permalink / raw)
  To: linux-crypto; +Cc: linux-geode, herbert, davem, sachin.kamat, patches

module_pci_driver makes the code simpler by eliminating
module_init and module_exit calls.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/crypto/geode-aes.c |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)

diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index 933fb4b4..51f196d 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -585,21 +585,8 @@ static struct pci_driver geode_aes_driver = {
 	.remove = __devexit_p(geode_aes_remove)
 };
 
-static int __init
-geode_aes_init(void)
-{
-	return pci_register_driver(&geode_aes_driver);
-}
-
-static void __exit
-geode_aes_exit(void)
-{
-	pci_unregister_driver(&geode_aes_driver);
-}
+module_pci_driver(geode_aes_driver);
 
 MODULE_AUTHOR("Advanced Micro Devices, Inc.");
 MODULE_DESCRIPTION("Geode LX Hardware AES driver");
 MODULE_LICENSE("GPL");
-
-module_init(geode_aes_init);
-module_exit(geode_aes_exit);
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: geode-aes: Use module_pci_driver
  2012-08-27 10:15 [PATCH] crypto: geode-aes: Use module_pci_driver Sachin Kamat
@ 2012-09-06  4:11 ` Sachin Kamat
  2012-09-06 20:21 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Sachin Kamat @ 2012-09-06  4:11 UTC (permalink / raw)
  To: linux-crypto; +Cc: linux-geode, herbert, davem, sachin.kamat, patches

Hi,

Any comments on this patch?

On 27 August 2012 15:45, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> module_pci_driver makes the code simpler by eliminating
> module_init and module_exit calls.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/crypto/geode-aes.c |   15 +--------------
>  1 files changed, 1 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
> index 933fb4b4..51f196d 100644
> --- a/drivers/crypto/geode-aes.c
> +++ b/drivers/crypto/geode-aes.c
> @@ -585,21 +585,8 @@ static struct pci_driver geode_aes_driver = {
>         .remove = __devexit_p(geode_aes_remove)
>  };
>
> -static int __init
> -geode_aes_init(void)
> -{
> -       return pci_register_driver(&geode_aes_driver);
> -}
> -
> -static void __exit
> -geode_aes_exit(void)
> -{
> -       pci_unregister_driver(&geode_aes_driver);
> -}
> +module_pci_driver(geode_aes_driver);
>
>  MODULE_AUTHOR("Advanced Micro Devices, Inc.");
>  MODULE_DESCRIPTION("Geode LX Hardware AES driver");
>  MODULE_LICENSE("GPL");
> -
> -module_init(geode_aes_init);
> -module_exit(geode_aes_exit);
> --
> 1.7.4.1
>



-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: geode-aes: Use module_pci_driver
  2012-08-27 10:15 [PATCH] crypto: geode-aes: Use module_pci_driver Sachin Kamat
  2012-09-06  4:11 ` Sachin Kamat
@ 2012-09-06 20:21 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2012-09-06 20:21 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-crypto, linux-geode, davem, patches

On Mon, Aug 27, 2012 at 03:45:31PM +0530, Sachin Kamat wrote:
> module_pci_driver makes the code simpler by eliminating
> module_init and module_exit calls.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Patch applied.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-06 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-27 10:15 [PATCH] crypto: geode-aes: Use module_pci_driver Sachin Kamat
2012-09-06  4:11 ` Sachin Kamat
2012-09-06 20:21 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.