mfd: omap-usb-host: Actually update hostconfig

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>
This commit is contained in:
Roger Quadros 2013-02-27 15:19:24 +02:00 committed by Samuel Ortiz
parent 6dbe51c251
commit 26bacba15e

View File

@ -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;
}