diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 15:19:53 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 11:58:00 +0200 |
commit | 9c5fdd38276973c8c65394220e5e740be561cf92 (patch) | |
tree | 2b4e186aa912e1a637831ebac747743c8d980567 /drivers/usb/phy/phy-mxs-usb.c | |
parent | drivers/usb/host: don't check resource with devm_ioremap_resource (diff) | |
download | linux-9c5fdd38276973c8c65394220e5e740be561cf92.tar.xz linux-9c5fdd38276973c8c65394220e5e740be561cf92.zip |
drivers/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.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
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 9d4381e64d51..eb25dd2a1429 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); |