pxa27x_ohci_select_pmm( PMM_PERPORT_MODE );  /* If choosing PMM_PERPORT_MODE, we should set the port power before we use it. */ if (pxa27x_ohci_set_port_power(1) < 0) printk(KERN_ERR "Setting port 1 power failed.\n");  if (pxa27x_ohci_clear_port_power(2) < 0) printk(KERN_ERR "Setting port 2 power failed.\n");  if (pxa27x_ohci_clear_port_power(3) < 0) printk(KERN_ERR "Setting port 3 power failed.\n"); 
pxa27x_ohci_select_pmm(pxa27x_ohci_pmm_state); 
int usb_hcd_pxa27x_probe (const struct hc_driver *driver,			  struct platform_device *dev){	int retval;	struct usb_hcd *hcd;	if (dev->resource[1].flags != IORESOURCE_IRQ) {		pr_debug ("resource[1] is not IORESOURCE_IRQ");		return -ENOMEM;	}	hcd = usb_create_hcd (driver, &dev->dev, "pxa27x");	if (!hcd)		return -ENOMEM;	hcd->rsrc_start = dev->resource[0].start;	hcd->rsrc_len = dev->resource[0].end - dev->resource[0].start + 1;	if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) {		pr_debug("request_mem_region failed");		retval = -EBUSY;		goto err1;	}	hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len);	if (!hcd->regs) {		pr_debug("ioremap failed");		retval = -ENOMEM;		goto err2;	}	pxa27x_start_hc(dev);	/* Select Power Management Mode */	pxa27x_ohci_select_pmm( PMM_PERPORT_MODE );	/* If choosing PMM_PERPORT_MODE, we should set the port power before we use it. */	if (pxa27x_ohci_set_port_power(1) < 0)		printk(KERN_ERR "Setting port 1 power failed.\n");	if (pxa27x_ohci_clear_port_power(2) < 0)		printk(KERN_ERR "Setting port 2 power failed.\n");	if (pxa27x_ohci_clear_port_power(3) < 0)		printk(KERN_ERR "Setting port 3 power failed.\n");	ohci_hcd_init(hcd_to_ohci(hcd));	retval = usb_add_hcd(hcd, dev->resource[1].start, SA_INTERRUPT);	if (retval == 0)		return retval;	pxa27x_stop_hc(dev);	iounmap(hcd->regs); err2:	release_mem_region(hcd->rsrc_start, hcd->rsrc_len); err1:	usb_put_hcd(hcd);	return retval;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/155faf5e1e36ca3a6127bdfb5c624d58e520c411/ohci-pxa27x.c/buggy/drivers/usb/host/ohci-pxa27x.c