]> git.baikalelectronics.ru Git - kernel.git/commit
USB: otg: fix twl4030-usb build
authorRandy Dunlap <randy.dunlap@oracle.com>
Tue, 11 Aug 2009 18:31:31 +0000 (11:31 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:34 +0000 (06:46 -0700)
commit219d1913ce73c29316853bfad8ba871b0802bc0e
tree49b4d54bc35c308841ed87caa5369ef322a15c2d
parent3826060c8ffffcd1ee0b1a7cf558f144a0099371
USB: otg: fix twl4030-usb build

subsys_initcall_sync() is only defined for built-in code, not for
loadable modules, so this driver build fails when built as a module.
However, the _sync() forms of the initcalls are not implemented,
so this should not be used -- just use the non-sync form of it.

drivers/usb/otg/twl4030-usb.c:777: warning: data definition has no type or storage class
drivers/usb/otg/twl4030-usb.c:777: warning: type defaults to 'int' in declaration of 'subsys_initcall_sync'
drivers/usb/otg/twl4030-usb.c:777: warning: parameter names (without types) in function declaration

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/otg/twl4030-usb.c