int __init platform_usb_devices_init(struct platform_device **ehci_dev, struct platform_device **ohci_dev) { *ehci_dev = &ehci_device; ehci_resources[0].start = asic_reg_phys_addr(ehci_hcapbase); ehci_resources[0].end += ehci_resources[0].start; *ohci_dev = &ohci_device; ohci_resources[0].start = asic_reg_phys_addr(ohci_hc_revision); ohci_resources[0].end += ohci_resources[0].start; return 0; }
/** * platform_devices_init - sets up USB device resourse. */ static int __init platform_devices_init(void) { pr_notice("%s: ----- Initializing USB resources -----\n", __func__); asic_resource.start = asic_phy_base; asic_resource.end += asic_resource.start; ehci_resources[0].start = asic_reg_phys_addr(ehci_hcapbase); ehci_resources[0].end += ehci_resources[0].start; ohci_resources[0].start = asic_reg_phys_addr(ohci_hc_revision); ohci_resources[0].end += ohci_resources[0].start; set_io_port_base(0); platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); return 0; }