diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-10 12:17:16 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-05-15 18:32:17 +0400 |
commit | 9d6ab420a9cb475fb99874f06d00df9c8259c973 (patch) | |
tree | 9f053a723f06937ea8542e8b98d8409e3d590fa0 /drivers/usb/phy/phy-mxs-usb.c | |
parent | 2cde3935cf0e51ce5fd07609f1b770664db2d96b (diff) | |
download | linux-9d6ab420a9cb475fb99874f06d00df9c8259c973.tar.xz |
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-mxs-usb.c')
-rw-r--r-- | drivers/usb/phy/phy-mxs-usb.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 3b642778cdff..763250b3c4fb 100644 --- a/drivers/usb/phy/phy-mxs-usb.c +++ b/drivers/usb/phy/phy-mxs-usb.c @@ -130,11 +130,6 @@ static int mxs_phy_probe(struct platform_device *pdev) int ret; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(&pdev->dev, "can't get device resources\n"); - return -ENOENT; - } - base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(base)) return PTR_ERR(base); |