diff options
-rw-r--r-- | drivers/mtd/nand/txx9ndfmc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mtd/nand/txx9ndfmc.c b/drivers/mtd/nand/txx9ndfmc.c index ace46fdaef58..c7c4f1d11c77 100644 --- a/drivers/mtd/nand/txx9ndfmc.c +++ b/drivers/mtd/nand/txx9ndfmc.c | |||
@@ -298,11 +298,7 @@ static int __init txx9ndfmc_probe(struct platform_device *dev) | |||
298 | drvdata = devm_kzalloc(&dev->dev, sizeof(*drvdata), GFP_KERNEL); | 298 | drvdata = devm_kzalloc(&dev->dev, sizeof(*drvdata), GFP_KERNEL); |
299 | if (!drvdata) | 299 | if (!drvdata) |
300 | return -ENOMEM; | 300 | return -ENOMEM; |
301 | if (!devm_request_mem_region(&dev->dev, res->start, | 301 | drvdata->base = devm_request_and_ioremap(&dev->dev, res); |
302 | resource_size(res), dev_name(&dev->dev))) | ||
303 | return -EBUSY; | ||
304 | drvdata->base = devm_ioremap(&dev->dev, res->start, | ||
305 | resource_size(res)); | ||
306 | if (!drvdata->base) | 302 | if (!drvdata->base) |
307 | return -EBUSY; | 303 | return -EBUSY; |
308 | 304 | ||