]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: ohci: da8xx: use ohci priv data instead of globals
authorAxel Haslam <ahaslam@baylibre.com>
Wed, 23 Nov 2016 18:06:45 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 16:31:35 +0000 (17:31 +0100)
commitc7a4f9f35b5770263f984ab7a6ca2dcf5de1f24f
tree20c9263beee2c62842a1d1950bb7f195cbc24b33
parent9dd649c6390dcf3c7b4e66703a88a1c5492562cf
USB: ohci: da8xx: use ohci priv data instead of globals

Instead of global variables, use the extra_priv_size of
the ohci driver.

We cannot yet move the ocic mask because this is used on
the interrupt handler which is registered through platform
data and does not have an hcd pointer. This will be moved
on a later patch.

Tested-by: David Lechner <david@lechnology.com>
Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-da8xx.c