]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: ohci-da8xx: let the regulator framework keep track of use count
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 12 Apr 2019 12:36:36 +0000 (14:36 +0200)
committerSekhar Nori <nsekhar@ti.com>
Fri, 12 Apr 2019 14:13:54 +0000 (19:43 +0530)
commit8e2f5eae24351d6f536c602eccdc4ad12b675c28
tree4192f70df85b3321efaaa4b1e953b7ee122d7583
parent3ea9ae57b412391b14d059ba424c9c51bfbc5059
usb: ohci-da8xx: let the regulator framework keep track of use count

There's no reason to have a separate variable to keep track of the
regulator state. The regulator core already does that. Remove
reg_enabled from struct da8xx_ohci_hcd.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/usb/host/ohci-da8xx.c