diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 09:19:52 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 05:57:47 -0400 |
commit | bb522812a1a620aa044448fcc8ea9baf0559be46 (patch) | |
tree | f7fa5017c8b9d3c72ffe2bbaa9c800f46361303b /drivers/usb | |
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')
-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) | |||
300 | } | 300 | } |
301 | 301 | ||
302 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 302 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
303 | if (!res) { | ||
304 | dev_err(&pdev->dev, "Failed to get MEM resource\n"); | ||
305 | ret = -ENOMEM; | ||
306 | goto out8; | ||
307 | } | ||
308 | |||
309 | hcd->regs = devm_ioremap_resource(&pdev->dev, res); | 303 | hcd->regs = devm_ioremap_resource(&pdev->dev, res); |
310 | if (IS_ERR(hcd->regs)) { | 304 | if (IS_ERR(hcd->regs)) { |
311 | ret = PTR_ERR(hcd->regs); | 305 | ret = PTR_ERR(hcd->regs); |