urbp->short_control_packet = 1;
td = list_entry(urbp->td_list.prev, struct uhci_td, list);
- urbp->qh->element = cpu_to_le32(td->dma_handle);
+ urbp->qh->element = td->dma_handle;
return -EINPROGRESS;
}
static irqreturn_t uhci_irq(struct usb_hcd *hcd, struct pt_regs *regs)
{
struct uhci_hcd *uhci = hcd_to_uhci(hcd);
- unsigned long io_addr = uhci->io_addr;
+ unsigned int io_addr = uhci->io_addr;
unsigned short status;
struct list_head *tmp, *head;
unsigned int age;
static void reset_hc(struct uhci_hcd *uhci)
{
- unsigned long io_addr = uhci->io_addr;
+ unsigned int io_addr = uhci->io_addr;
/* Turn off PIRQ, SMI, and all interrupts. This also turns off
* the BIOS's USB Legacy Support.
static void suspend_hc(struct uhci_hcd *uhci)
{
- unsigned long io_addr = uhci->io_addr;
+ unsigned int io_addr = uhci->io_addr;
dev_dbg(uhci_dev(uhci), "%s\n", __FUNCTION__);
uhci->state = UHCI_SUSPENDED;
static void wakeup_hc(struct uhci_hcd *uhci)
{
- unsigned long io_addr = uhci->io_addr;
+ unsigned int io_addr = uhci->io_addr;
switch (uhci->state) {
case UHCI_SUSPENDED: /* Start the resume */
static int ports_active(struct uhci_hcd *uhci)
{
- unsigned long io_addr = uhci->io_addr;
+ unsigned int io_addr = uhci->io_addr;
int connection = 0;
int i;
static int suspend_allowed(struct uhci_hcd *uhci)
{
- unsigned long io_addr = uhci->io_addr;
+ unsigned int io_addr = uhci->io_addr;
int i;
if (to_pci_dev(uhci_dev(uhci))->vendor != PCI_VENDOR_ID_INTEL)
static void start_hc(struct uhci_hcd *uhci)
{
- unsigned long io_addr = uhci->io_addr;
+ unsigned int io_addr = uhci->io_addr;
int timeout = 1000;
/*
uhci->fl->frame[i] = cpu_to_le32(uhci->skelqh[irq]->dma_handle);
}
- /*
- * Some architectures require a full mb() to enforce completion of
- * the memory writes above before the I/O transfers in start_hc().
- */
- mb();
start_hc(uhci);
init_stall_timer(hcd);
}
#ifdef CONFIG_PROC_FS
- uhci_proc_root = create_proc_entry("driver/uhci", S_IFDIR, NULL);
+ uhci_proc_root = create_proc_entry("driver/uhci", S_IFDIR, 0);
if (!uhci_proc_root)
goto proc_failed;
#endif
up_failed:
#ifdef CONFIG_PROC_FS
- remove_proc_entry("driver/uhci", NULL);
+ remove_proc_entry("driver/uhci", 0);
proc_failed:
#endif
warn("not all urb_priv's were freed!");
#ifdef CONFIG_PROC_FS
- remove_proc_entry("driver/uhci", NULL);
+ remove_proc_entry("driver/uhci", 0);
#endif
if (errbuf)