hwrng: pasemi - Use __devexit_p
diff mbox series

Message ID 20091211152947.GA1012@gondor.apana.org.au
State New, archived
Headers show
Series
  • hwrng: pasemi - Use __devexit_p
Related show

Commit Message

Herbert Xu Dec. 11, 2009, 3:29 p.m. UTC
Found this while trying to track down section mismatches in hwrng.

commit af304da7bbc35a72828cd8c5ef3c4e62ddaf0518
Author: Herbert Xu <herbert@gondor.apana.org.au>
Date:   Fri Dec 11 23:13:33 2009 +0800

    hwrng: pasemi - Use __devexit_p
    
    We must wrap __devexit functions with __devexit_p.
    
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Comments

Matt Mackall Dec. 11, 2009, 6:35 p.m. UTC | #1
On Fri, 2009-12-11 at 23:29 +0800, Herbert Xu wrote:
> Found this while trying to track down section mismatches in hwrng.

Gotta love those.

Acked-by: Matt Mackall <mpm@selenic.com>

Patch
diff mbox series

diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c
index 7fa61dd..5ec40af 100644
--- a/drivers/char/hw_random/pasemi-rng.c
+++ b/drivers/char/hw_random/pasemi-rng.c
@@ -143,7 +143,7 @@  static struct of_platform_driver rng_driver = {
 	.name		= "pasemi-rng",
 	.match_table	= rng_match,
 	.probe		= rng_probe,
-	.remove		= rng_remove,
+	.remove		= __devexit_p(rng_remove),
 };
 
 static int __init rng_init(void)