]> git.baikalelectronics.ru Git - kernel.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)
commit2ef2527ab7aa6fd7aa41c19caf6c7ffb449bc987
tree20c9263beee2c62842a1d1950bb7f195cbc24b33
parent4ed0c37b07b2ff44c0321a9333d88d4bafd351db
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