]> asedeno.scripts.mit.edu Git - linux.git/commit
ehci-platform: Add support for shared reset controllers
authorHans de Goede <hdegoede@redhat.com>
Wed, 8 Jun 2016 16:54:40 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 17:55:17 +0000 (10:55 -0700)
commit76d15c8fba655c9b2d60cf01834858f2c44483dc
tree85ebcd2182c75204720c1d5465ae1eec9bc108d4
parent62d9694a003dba585026df36c181e3ca930aeafc
ehci-platform: Add support for shared reset controllers

Add support for shared platform controllers by using
devm_reset_control_get_shared_by_index instead of
of_reset_control_get_by_index.

Note we use the devm function because there is no
of_reset_control_get_shared_by_index, this also leads
to a nice cleanup of the cleanup code.

This brings the ehci-platform reset handling code inline
with ohci-platform.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-platform.c