summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-samsung-usb3.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-05-10 10:17:16 +0200
committerFelipe Balbi <balbi@ti.com>2013-05-15 16:32:17 +0200
commit9d6ab420a9cb475fb99874f06d00df9c8259c973 (patch)
tree9f053a723f06937ea8542e8b98d8409e3d590fa0 /drivers/usb/phy/phy-samsung-usb3.c
parentusb: gadget: don't check resource with devm_ioremap_resource (diff)
downloadlinux-9d6ab420a9cb475fb99874f06d00df9c8259c973.tar.xz
linux-9d6ab420a9cb475fb99874f06d00df9c8259c973.zip
usb: phy: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-samsung-usb3.c')
-rw-r--r--drivers/usb/phy/phy-samsung-usb3.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/phy/phy-samsung-usb3.c b/drivers/usb/phy/phy-samsung-usb3.c
index 133f3d0c554f..5a9efcbcb532 100644
--- a/drivers/usb/phy/phy-samsung-usb3.c
+++ b/drivers/usb/phy/phy-samsung-usb3.c
@@ -239,11 +239,6 @@ static int samsung_usb3phy_probe(struct platform_device *pdev)
int ret;
phy_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!phy_mem) {
- dev_err(dev, "%s: missing mem resource\n", __func__);
- return -ENODEV;
- }
-
phy_base = devm_ioremap_resource(dev, phy_mem);
if (IS_ERR(phy_base))
return PTR_ERR(phy_base);