Thread (22 messages) 22 messages, 4 authors, 2013-01-15
STALE4881d

Re: [PATCH v3 2/3] usb: fsl_mxc_udc: replace MX35_IO_ADDRESS to ioremap

From: Peter Chen <hidden>
Date: 2013-01-14 13:16:20
Also in: linux-arm-kernel

On Mon, Jan 14, 2013 at 01:10:56PM +0000, Russell King - ARM Linux wrote:
On Mon, Jan 14, 2013 at 06:12:40PM +0800, Peter Chen wrote:
quoted
@@ -83,15 +84,16 @@ void fsl_udc_clk_finalize(enum fsl_udc_type devtype,
 	struct fsl_usb2_platform_data *pdata = pdev->dev.platform_data;
 	if (devtype == IMX35_UDC) {
 		unsigned int v;
+		void __iomem *phy_regs = ioremap((unsigned long)pdata->regs +
+						MX35_USBPHYCTRL_OFFSET, 512);
Consider that ioremap() can fail.
Thanks, will check NULL pointer.

-- 

Best Regards,
Peter Chen
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help