Skip to content

Commit

Permalink
V4L/DVB (8609): media: Clean up platform_driver_unregister() bogosity.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt authored and Mauro Carvalho Chehab committed Aug 6, 2008
1 parent d483b73 commit 01c1e4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/pxa_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/sh_mobile_ceu_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/soc_camera_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 01c1e4c

Please sign in to comment.