diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 09:19:46 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 09:19:46 -0400 |
commit | 29589f06d2430efb76c227b0117029ebd3101eec (patch) | |
tree | 9675ddf56f2c44c40592c58ee72bfc86a83bc037 /drivers/ata/pata_ep93xx.c | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) |
drivers/ata: 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/ata/pata_ep93xx.c')
-rw-r--r-- | drivers/ata/pata_ep93xx.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index c1bfaf43d109..980b88e109fc 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c | |||
@@ -933,11 +933,6 @@ static int ep93xx_pata_probe(struct platform_device *pdev) | |||
933 | } | 933 | } |
934 | 934 | ||
935 | mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 935 | mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
936 | if (!mem_res) { | ||
937 | err = -ENXIO; | ||
938 | goto err_rel_gpio; | ||
939 | } | ||
940 | |||
941 | ide_base = devm_ioremap_resource(&pdev->dev, mem_res); | 936 | ide_base = devm_ioremap_resource(&pdev->dev, mem_res); |
942 | if (IS_ERR(ide_base)) { | 937 | if (IS_ERR(ide_base)) { |
943 | err = PTR_ERR(ide_base); | 938 | err = PTR_ERR(ide_base); |