diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-09-30 12:57:10 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-02-17 17:53:03 +0100 |
commit | 4747639f01c9247250b351e02c179b337de7a159 (patch) | |
tree | bf12dd7899d53ede9288c0b19222d95cbf8d2fbd /drivers/usb/gadget/udc/atmel_usba_udc.h | |
parent | 6c38bda9ae4ac442b904416901c4dac6d2e53e70 (diff) | |
download | op-kernel-dev-4747639f01c9247250b351e02c179b337de7a159.zip op-kernel-dev-4747639f01c9247250b351e02c179b337de7a159.tar.gz |
usb: gadget: atmel: access the PMC using regmap
Use regmap to access the PMC to avoid using at91_pmc_read and
at91_pmc_write.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/atmel_usba_udc.h')
-rw-r--r-- | drivers/usb/gadget/udc/atmel_usba_udc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.h b/drivers/usb/gadget/udc/atmel_usba_udc.h index ea448a3..3e1c9d5 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.h +++ b/drivers/usb/gadget/udc/atmel_usba_udc.h @@ -354,6 +354,8 @@ struct usba_udc { struct dentry *debugfs_root; struct dentry *debugfs_regs; #endif + + struct regmap *pmc; }; static inline struct usba_ep *to_usba_ep(struct usb_ep *ep) |