diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-16 13:15:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-16 15:42:29 -0700 |
commit | 79719e644162bffd59df99404a7aef7b726c3f83 (patch) | |
tree | 6939f2e87d34abfec394f035f6b1a6e6813460eb /drivers/staging/nvec | |
parent | f1e2f53e73c44121a5e2c3a4c9a645d7def3a843 (diff) | |
download | linux-stable-79719e644162bffd59df99404a7aef7b726c3f83.tar.gz linux-stable-79719e644162bffd59df99404a7aef7b726c3f83.tar.bz2 linux-stable-79719e644162bffd59df99404a7aef7b726c3f83.zip |
drivers/staging/nvec: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/nvec')
-rw-r--r-- | drivers/staging/nvec/nvec.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 131b08d60b78..66c7bd26b3ca 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -814,11 +814,6 @@ static int tegra_nvec_probe(struct platform_device *pdev) } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(&pdev->dev, "no mem resource?\n"); - return -ENODEV; - } - base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(base)) return PTR_ERR(base); |