diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 15:19:52 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 11:57:47 +0200 |
commit | bb522812a1a620aa044448fcc8ea9baf0559be46 (patch) | |
tree | f7fa5017c8b9d3c72ffe2bbaa9c800f46361303b /drivers/usb/host/ohci-nxp.c | |
parent | bd935817db7b7ce71fd1922677fc42fa3edcd4dc (diff) |
drivers/usb/host: 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>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Diffstat (limited to 'drivers/usb/host/ohci-nxp.c')
-rw-r--r-- | drivers/usb/host/ohci-nxp.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci-nxp.c index f4988fbe78e7..f303cb04c2dd 100644 --- a/drivers/usb/host/ohci-nxp.c +++ b/drivers/usb/host/ohci-nxp.c @@ -300,12 +300,6 @@ static int usb_hcd_nxp_probe(struct platform_device *pdev) } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(&pdev->dev, "Failed to get MEM resource\n"); - ret = -ENOMEM; - goto out8; - } - hcd->regs = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(hcd->regs)) { ret = PTR_ERR(hcd->regs); |