From: Dan Carpenter Date: Wed, 14 May 2014 13:54:47 +0000 (+0300) Subject: usb: phy: msm: change devm_ioremap() to devm_ioremap_resource() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~34^2~171^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10f0577aa5cb03c81cf6ddc2ff7de1b6d6152d0b;p=pandora-kernel.git usb: phy: msm: change devm_ioremap() to devm_ioremap_resource() There are several issues here: 1) platform_get_resource() can return NULL and that wasn't handled. 2) We should request the memory before we remap it, and devm_ioremap_resource() does that. 3) devm_ioremap() returns a NULL but we were checking for IS_ERR(). Fixes: 6b99c68ec1f9 ('usb: phy: msm: Migrate to Managed Device Resource allocation') Signed-off-by: Dan Carpenter Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed