fotg210: Use managed interfaces for allocation of resources
authorHimangi Saraogi <himangi774@gmail.com>
Tue, 1 Jul 2014 20:34:44 +0000 (02:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 23:31:48 +0000 (16:31 -0700)
commit0e278b3408999d5bdce50bd0d7f97608483eebea
tree0c95116135239abc5a26092f74e10ed0c7c0cd2d
parent96ae571338a4b2ecd2e42a6881bb0daa1a4e7d4f
fotg210: Use managed interfaces for allocation of resources

This patch intoduces the use of devm_ioremap_resource instead of
request_mem_region and ioremap_nocache and removes the calls to free the
allocated memory. Some labels are removes and a new label failed
introduced to make it less specific to the context. The call to a
platform get resource with IORESOURCE_IO is removed as it allocates
memory that is not needed.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fotg210-hcd.c