]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] usb linkage fix
authorAndrew Morton <akpm@osdl.org>
Fri, 30 Apr 2004 14:09:43 +0000 (07:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 30 Apr 2004 14:09:43 +0000 (07:09 -0700)
On sparc64 toolchain:

drivers/built-in.o(.init.text+0xaf8c): In function `usb_init':
: undefined reference to `usbfs_cleanup'

usb_init() is __init and usbfs_cleanup() is __exit.  No can do.

drivers/usb/core/inode.c

index ff34ed013543740ae44d76465c7c55fb131f7b2c..8076c243724064327e8e19236ebfe771ef1ae587 100644 (file)
@@ -766,7 +766,7 @@ int __init usbfs_init(void)
        return 0;
 }
 
-void __exit usbfs_cleanup(void)
+void usbfs_cleanup(void)
 {
        usb_deregister(&usbdevfs_driver);
        unregister_filesystem(&usb_fs_type);