V4L/DVB (8609): media: Clean up platform_driver_unregister() bogosity.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 1 Aug 2008 22:48:51 +0000 (19:48 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 6 Aug 2008 09:57:30 +0000 (06:57 -0300)
So, platform_driver_unregister() doesn't actually have a return value,
nor do any of the void __exit routines. It's reassuring to know that
people copy and paste blindly. This completely blew up my compiler.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pxa_camera.c
drivers/media/video/sh_mobile_ceu_camera.c
drivers/media/video/soc_camera_platform.c

index b15f82c497662550e4404611e9f1b0aa9e3811cc..28d8fd0679b4ecde660b7d36af2a5b6ba7c53900 100644 (file)
@@ -1198,7 +1198,7 @@ static int __devinit pxa_camera_init(void)
 
 static void __exit pxa_camera_exit(void)
 {
-       return platform_driver_unregister(&pxa_camera_driver);
+       platform_driver_unregister(&pxa_camera_driver);
 }
 
 module_init(pxa_camera_init);
index f7ca3cb9340ad3ef0fb750dcd60a229f9d0c2208..318754e731326ee1bdd92a76b829d23736e1cf79 100644 (file)
@@ -647,7 +647,7 @@ static int __init sh_mobile_ceu_init(void)
 
 static void __exit sh_mobile_ceu_exit(void)
 {
-       return platform_driver_unregister(&sh_mobile_ceu_driver);
+       platform_driver_unregister(&sh_mobile_ceu_driver);
 }
 
 module_init(sh_mobile_ceu_init);
index eefb0327ebb6c5f29cc33d41db7ff01e9c872476..1adc257ebdb97f00140d162dbdc51aacea04f7df 100644 (file)
@@ -187,7 +187,7 @@ static int __init soc_camera_platform_module_init(void)
 
 static void __exit soc_camera_platform_module_exit(void)
 {
-       return platform_driver_unregister(&soc_camera_platform_driver);
+       platform_driver_unregister(&soc_camera_platform_driver);
 }
 
 module_init(soc_camera_platform_module_init);