From: Shaohui Xie Date: Mon, 7 Nov 2011 08:58:20 +0000 (+0800) Subject: powerpc/usb: fix type cast for address of ioremap to compatible with 64-bit X-Git-Tag: v3.2-rc3~17^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8981d76a2cf4c46333d9a18176a6eee337a71146;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed