]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
uhci-platform: use devm_ioremap resource
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 11 Jun 2014 19:18:44 +0000 (00:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 23:31:48 +0000 (16:31 -0700)
commit96ae571338a4b2ecd2e42a6881bb0daa1a4e7d4f
tree7ad28eb711a37b05fcf2fafbf89a91ae56cd27a4
parent3e346d41bfcdf803284b06ef6e4bf13fa2b86277
uhci-platform: use devm_ioremap resource

This patch replaces the memory allocation using request_mem_region and
the ioremap by a single call to managed interface devm_ioremap_reource.
The corresponding calls to release_mem_region and iounmap in the probe
and release functions are now unnecessary and are removed. Also a label
is done away with and linux/device.h is added to make sure the devm_*()
outine declarations are unambiguously available.

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/uhci-platform.c