diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index ceb6a9c357ad..4dbe5f173273 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c | |||
@@ -894,7 +894,7 @@ static int ethoc_probe(struct platform_device *pdev) | |||
894 | 894 | ||
895 | mmio = devm_request_mem_region(&pdev->dev, res->start, | 895 | mmio = devm_request_mem_region(&pdev->dev, res->start, |
896 | res->end - res->start + 1, res->name); | 896 | res->end - res->start + 1, res->name); |
897 | if (!res) { | 897 | if (!mmio) { |
898 | dev_err(&pdev->dev, "cannot request I/O memory space\n"); | 898 | dev_err(&pdev->dev, "cannot request I/O memory space\n"); |
899 | ret = -ENXIO; | 899 | ret = -ENXIO; |
900 | goto free; | 900 | goto free; |