RE: [PATCH] powerpc/usb: use unsigned long to type cast an address of ioremap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
> On Thu, Nov 3, 2011 at 4:58 AM, Shaohui Xie <Shaohui.Xie@xxxxxxxxxxxxx> wrote:
> >
> >                usb_sys_regs = (struct usb_sys_interface *)
> > -                               ((u32)dr_regs + USB_DR_SYS_OFFSET);
> > +                               ((unsigned long)dr_regs + USB_DR_SYS_OFFSET);
> 
> This makes more sense:
> 
> usb_sys_regs = (void *)dr_regs + USB_DR_SYS_OFFSET;

But that is invalid C.

	David


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux