Commit 8626165a authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Search and replace wRelMinor with rev_minor

Search and replace wRelMinor with rev_minor
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5d15a9bd
...@@ -1251,7 +1251,7 @@ static int __init musb_core_init(u16 wType, struct musb *musb) ...@@ -1251,7 +1251,7 @@ static int __init musb_core_init(u16 wType, struct musb *musb)
#endif #endif
u8 reg; u8 reg;
char *type; char *type;
u16 hwvers, rev_major, wRelMinor; u16 hwvers, rev_major, rev_minor;
char aInfo[78], aRevision[32], aDate[12]; char aInfo[78], aRevision[32], aDate[12];
void __iomem *mbase = musb->mregs; void __iomem *mbase = musb->mregs;
int status = 0; int status = 0;
...@@ -1328,9 +1328,9 @@ static int __init musb_core_init(u16 wType, struct musb *musb) ...@@ -1328,9 +1328,9 @@ static int __init musb_core_init(u16 wType, struct musb *musb)
/* log release info */ /* log release info */
hwvers = musb_readw(mbase, MUSB_HWVERS); hwvers = musb_readw(mbase, MUSB_HWVERS);
rev_major = (hwvers >> 10) & 0x1f; rev_major = (hwvers >> 10) & 0x1f;
wRelMinor = hwvers & 0x3ff; rev_minor = hwvers & 0x3ff;
snprintf(aRevision, 32, "%d.%d%s", rev_major, snprintf(aRevision, 32, "%d.%d%s", rev_major,
wRelMinor, (hwvers & 0x8000) ? "RC" : ""); rev_minor, (hwvers & 0x8000) ? "RC" : "");
printk(KERN_DEBUG "%s: %sHDRC RTL version %s %s\n", printk(KERN_DEBUG "%s: %sHDRC RTL version %s %s\n",
musb_driver_name, type, aRevision, aDate); musb_driver_name, type, aRevision, aDate);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment