drm/i915: acpi/video.c fix section mismatch warning
authorJaswinder Singh Rajput <jaswinder@kernel.org>
Wed, 20 May 2009 06:26:08 +0000 (11:56 +0530)
committerLen Brown <len.brown@intel.com>
Sat, 30 May 2009 01:26:25 +0000 (21:26 -0400)
Currently acpi_video_exit() is exported as well as using __exit which causes:

  WARNING: drivers/acpi/video.o(__ksymtab+0x0): Section mismatch in reference from the variable __ksymtab_acpi_video_exit to the function .exit.text:acpi_video_exit()
  The symbol acpi_video_exit is exported and annotated __exit
  Fix this by removing the __exit annotation of acpi_video_exit or drop the export.

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c

index 810cca90ca7f0e390c2ad3a4dee33353848a0d43..a79b885352666765d9a1623aa2a944dad55f9c3f 100644 (file)
@@ -2334,7 +2334,7 @@ static int __init acpi_video_init(void)
        return acpi_video_register();
 }
 
-void __exit acpi_video_exit(void)
+void acpi_video_exit(void)
 {
 
        acpi_bus_unregister_driver(&acpi_video_bus);