Commit ed779b27 authored by Anton Vasilyev's avatar Anton Vasilyev Committed by Greg Kroah-Hartman

parport: use release_mem_region instead of release_resource

Use api pair of request_mem_region and release_mem_region
instead of release_resource.

Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: default avatarAnton Vasilyev <vasilyev@ispras.ru>
Signed-off-by: default avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df4c756e
...@@ -358,8 +358,7 @@ static int parport_ax88796_probe(struct platform_device *pdev) ...@@ -358,8 +358,7 @@ static int parport_ax88796_probe(struct platform_device *pdev)
exit_unmap: exit_unmap:
iounmap(dd->base); iounmap(dd->base);
exit_res: exit_res:
release_resource(dd->io); release_mem_region(dd->io->start, size);
kfree(dd->io);
exit_mem: exit_mem:
kfree(dd); kfree(dd);
return ret; return ret;
...@@ -373,8 +372,7 @@ static int parport_ax88796_remove(struct platform_device *pdev) ...@@ -373,8 +372,7 @@ static int parport_ax88796_remove(struct platform_device *pdev)
free_irq(p->irq, p); free_irq(p->irq, p);
parport_remove_port(p); parport_remove_port(p);
iounmap(dd->base); iounmap(dd->base);
release_resource(dd->io); release_mem_region(dd->io->start, resource_size(dd->io));
kfree(dd->io);
kfree(dd); kfree(dd);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment