Commit a7092d46 authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Search and replace wRelease with hwvers

Search and replace wRelease with hwvers
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 23c42126
...@@ -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 wRelease, wRelMajor, wRelMinor; u16 hwvers, wRelMajor, wRelMinor;
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;
...@@ -1326,11 +1326,11 @@ static int __init musb_core_init(u16 wType, struct musb *musb) ...@@ -1326,11 +1326,11 @@ static int __init musb_core_init(u16 wType, struct musb *musb)
} }
/* log release info */ /* log release info */
wRelease = musb_readw(mbase, MUSB_HWVERS); hwvers = musb_readw(mbase, MUSB_HWVERS);
wRelMajor = (wRelease >> 10) & 0x1f; wRelMajor = (hwvers >> 10) & 0x1f;
wRelMinor = wRelease & 0x3ff; wRelMinor = hwvers & 0x3ff;
snprintf(aRevision, 32, "%d.%d%s", wRelMajor, snprintf(aRevision, 32, "%d.%d%s", wRelMajor,
wRelMinor, (wRelease & 0x8000) ? "RC" : ""); wRelMinor, (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