fixed warnings
This commit is contained in:
@@ -217,4 +217,5 @@ extern int32_t pci_unhook_interrupt(int32_t handle);
|
|||||||
#define PCI_DEVICE_FROM_HANDLE(h) (((h) & 0xf8) >> 3)
|
#define PCI_DEVICE_FROM_HANDLE(h) (((h) & 0xf8) >> 3)
|
||||||
#define PCI_FUNCTION_FROM_HANDLE(h) (((h) & 0x7))
|
#define PCI_FUNCTION_FROM_HANDLE(h) (((h) & 0x7))
|
||||||
|
|
||||||
|
extern void chip_errata_135(void); /* needed in ohci-hcd.c */
|
||||||
#endif /* _PCI_H_ */
|
#endif /* _PCI_H_ */
|
||||||
|
|||||||
@@ -1627,8 +1627,8 @@ static int hc_reset(ohci_t *ohci)
|
|||||||
if (usb_base_addr == 0xFFFFFFFF)
|
if (usb_base_addr == 0xFFFFFFFF)
|
||||||
{
|
{
|
||||||
uint32_t base = pci_rsc_desc->offset + pci_rsc_desc->start;
|
uint32_t base = pci_rsc_desc->offset + pci_rsc_desc->start;
|
||||||
writel(readl((uint32_t) base + EHCI_USBCMD_OFF) | EHCI_USBCMD_HCRESET, base + EHCI_USBCMD_OFF);
|
writel((uint32_t) readl((uint32_t *) base + EHCI_USBCMD_OFF) | EHCI_USBCMD_HCRESET, (uint32_t *) base + EHCI_USBCMD_OFF);
|
||||||
while (readl(base + EHCI_USBCMD_OFF) & EHCI_USBCMD_HCRESET)
|
while (readl((uint32_t *) base + EHCI_USBCMD_OFF) & EHCI_USBCMD_HCRESET)
|
||||||
{
|
{
|
||||||
if (timeout-- <= 0)
|
if (timeout-- <= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user