On Mon, Aug 29, 2011 at 11:11:16AM +0530, ABRAHAM, KISHON VIJAY wrote: >> + >> +void ehci_unregister_platforms(void) >> +{ >> + ehci_unregister_ehci_xls_driver(); >> + ehci_unregister_ehci_hcd_w90x900_driver(); >> + ehci_unregister_vt8500_ehci_driver(); >> + ehci_unregister_tegra_ehci_driver(); >> + ehci_unregister_spear_ehci_hcd_driver(); >> + ehci_unregister_ehci_hcd_sh_driver(); >> + ehci_unregister_s5p_ehci_driver(); >> + ehci_unregister_ehci_pxa168_driver(); >> + ehci_unregister_ehci_hcd_msp_driver(); >> + ehci_unregister_ehci_orion_driver(); >> + ehci_unregister_ehci_hcd_omap_driver(); >> + ehci_unregister_ehci_octeon_driver(); >> + ehci_unregister_ehci_mxc_driver(); >> + ehci_unregister_ehci_msm_driver(); >> + ehci_unregister_ixp4xx_ehci_driver(); >> + ehci_unregister_ehci_grlib_driver(); >> + ehci_unregister_ehci_fsl_driver(); >> + ehci_unregister_cns3xxx_ehci_driver(); >> + ehci_unregister_ehci_hcd_au1xxx_driver(); >> + ehci_unregister_ehci_atmel_driver(); >> + ehci_unregister_ehci_ath79_driver(); >> +} > >These driver register/unregister functions can be added to module_init >in ehci-<plat>.c. And only the required ehci-<plat>.c should be >compiled by setting appropriate macros based on the platform. Yeah. I wasn't sure if multiple module_init() in one module are possible. Only the required modules _are_ compiled. So the question is this vs separate modules or one module? Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html