Skip to content

Commit

Permalink
mfd: omap-usb-host: Actually update hostconfig
Browse files Browse the repository at this point in the history
The helper functions omap_usbhs_rev1_hostconfig()
and omap_usbhs_rev2_hostconfig() don't write into
the hostconfig register. Make sure that we write
the return value into the hostconfig register.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Roger Quadros authored and Samuel Ortiz committed Mar 12, 2013
1 parent 6dbe51c commit 26bacba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mfd/omap-usb-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,15 +460,15 @@ static void omap_usbhs_init(struct device *dev)

switch (omap->usbhs_rev) {
case OMAP_USBHS_REV1:
omap_usbhs_rev1_hostconfig(omap, reg);
reg = omap_usbhs_rev1_hostconfig(omap, reg);
break;

case OMAP_USBHS_REV2:
omap_usbhs_rev2_hostconfig(omap, reg);
reg = omap_usbhs_rev2_hostconfig(omap, reg);
break;

default: /* newer revisions */
omap_usbhs_rev2_hostconfig(omap, reg);
reg = omap_usbhs_rev2_hostconfig(omap, reg);
break;
}

Expand Down

0 comments on commit 26bacba

Please sign in to comment.