Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb/ps3: Add missing annotations

probe functions should be __devinit
initialization functions should be __init

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Geert Uytterhoeven and committed by
Benjamin Herrenschmidt
31348517 2fae0a52

+4 -4
+2 -2
drivers/usb/host/ehci-ps3.c
··· 76 76 .port_handed_over = ehci_port_handed_over, 77 77 }; 78 78 79 - static int ps3_ehci_probe(struct ps3_system_bus_device *dev) 79 + static int __devinit ps3_ehci_probe(struct ps3_system_bus_device *dev) 80 80 { 81 81 int result; 82 82 struct usb_hcd *hcd; ··· 224 224 return 0; 225 225 } 226 226 227 - static int ps3_ehci_driver_register(struct ps3_system_bus_driver *drv) 227 + static int __init ps3_ehci_driver_register(struct ps3_system_bus_driver *drv) 228 228 { 229 229 return firmware_has_feature(FW_FEATURE_PS3_LV1) 230 230 ? ps3_system_bus_driver_register(drv)
+2 -2
drivers/usb/host/ohci-ps3.c
··· 75 75 #endif 76 76 }; 77 77 78 - static int ps3_ohci_probe(struct ps3_system_bus_device *dev) 78 + static int __devinit ps3_ohci_probe(struct ps3_system_bus_device *dev) 79 79 { 80 80 int result; 81 81 struct usb_hcd *hcd; ··· 224 224 return 0; 225 225 } 226 226 227 - static int ps3_ohci_driver_register(struct ps3_system_bus_driver *drv) 227 + static int __init ps3_ohci_driver_register(struct ps3_system_bus_driver *drv) 228 228 { 229 229 return firmware_has_feature(FW_FEATURE_PS3_LV1) 230 230 ? ps3_system_bus_driver_register(drv)