usb: ohci-omap: Create private state container
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Jul 2020 13:55:23 +0000 (15:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 11:42:37 +0000 (13:42 +0200)
commit233418634345b414595dc12afd07021169fc6d8e
tree804fc43ad782955a890a8e346d556b767ce14e10
parentd8a849353c9c7710faa260a1fd11918d1f533e86
usb: ohci-omap: Create private state container

The OMAP1 was using static locals to hold the clock handles
which is uncommon and does not scale. Create a private data
struct and use that to hold the clocks.

Cc: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20200720135524.100374-1-linus.walleij@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-omap.c