diff options
author | Matwey V. Kornilov | 2014-05-16 18:19:54 +0400 |
---|---|---|
committer | Felipe Balbi | 2014-05-16 12:14:55 -0500 |
commit | 8c240dc17d900cc6453b48bdd513f4243a9ec97d (patch) | |
tree | 7224e5f67cd9502e986c466fb8c699c4f7684dbc /drivers/usb/musb/tusb6010.c | |
parent | 84237bfb0b112a18a7c5d4d35a0663c97bdd14c6 (diff) |
usb: musb: tusb6010: Add tusb_revision to struct musb to store the revision.
Add field to store tusb6010 revision value. Read the revision at
the startup and store to the variable.
Signed-off-by: Matwey V. Kornilov <matwey@sai.msu.ru>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/tusb6010.c')
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index f38a8dbd6075..8a746421a325 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c @@ -1012,6 +1012,7 @@ static int tusb_musb_start(struct musb *musb) goto err; } + musb->tusb_revision = tusb_get_revision(musb); ret = tusb_print_revision(musb); if (ret < 2) { printk(KERN_ERR "tusb: Unsupported TUSB6010 revision %i\n", |