ehci->hcd.product_desc = "EHCI Host Controller";
return &ehci->hcd;
}
- return 0;
+ return NULL;
}
static void ehci_hcd_free (struct usb_hcd *hcd)
if (qh->dummy == 0) {
ehci_dbg (ehci, "no dummy td\n");
dma_pool_free (ehci->qh_pool, qh, qh->qh_dma);
- qh = 0;
+ qh = NULL;
}
return qh;
}
{
if (ehci->async)
qh_put (ehci->async);
- ehci->async = 0;
+ ehci->async = NULL;
/* DMA consistent memory and pools */
if (ehci->qtd_pool)
dma_pool_destroy (ehci->qtd_pool);
- ehci->qtd_pool = 0;
+ ehci->qtd_pool = NULL;
if (ehci->qh_pool) {
dma_pool_destroy (ehci->qh_pool);
- ehci->qh_pool = 0;
+ ehci->qh_pool = NULL;
}
if (ehci->itd_pool)
dma_pool_destroy (ehci->itd_pool);
- ehci->itd_pool = 0;
+ ehci->itd_pool = NULL;
if (ehci->sitd_pool)
dma_pool_destroy (ehci->sitd_pool);
- ehci->sitd_pool = 0;
+ ehci->sitd_pool = NULL;
if (ehci->periodic)
dma_free_coherent (ehci->hcd.self.controller,
ehci->periodic_size * sizeof (u32),
ehci->periodic, ehci->periodic_dma);
- ehci->periodic = 0;
+ ehci->periodic = NULL;
/* shadow periodic table */
if (ehci->pshadow)
kfree (ehci->pshadow);
- ehci->pshadow = 0;
+ ehci->pshadow = NULL;
}
/* remember to add cleanup code (above) if you add anything here */