summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorShaohui Xie <Shaohui.Xie@freescale.com>2011-11-07 16:58:20 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-14 15:52:11 -0800
commit8981d76a2cf4c46333d9a18176a6eee337a71146 (patch)
treefaaef63f5f82474a475baa105ad78ecd306a54fb /init
parent770f0baaee0c511d0d466082e72815ed861e301f (diff)
powerpc/usb: fix type cast for address of ioremap to compatible with 64-bit
Below are codes for accessing usb sysif_regs in driver: usb_sys_regs = (struct usb_sys_interface *) ((u32)dr_regs + USB_DR_SYS_OFFSET); these codes work in 32-bit, but in 64-bit, use u32 to type cast the address of ioremap is not right, and accessing members of 'usb_sys_regs' will cause call trace, so use (void *) for both 32-bit and 64-bit. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions