Skip to content

Commit e12cc34

Browse files
lumaggregkh
authored andcommitted
USB: omap_udc: fix compilation with debug enabled
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent e5fbab5 commit e12cc34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/usb/gadget/omap_udc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
#include <mach/dma.h>
5656
#include <mach/usb.h>
57+
#include <mach/control.h>
5758

5859
#include "omap_udc.h"
5960

@@ -2310,10 +2311,10 @@ static int proc_otg_show(struct seq_file *s)
23102311
u32 trans;
23112312
char *ctrl_name;
23122313

2313-
tmp = OTG_REV_REG;
2314+
tmp = omap_readl(OTG_REV);
23142315
if (cpu_is_omap24xx()) {
23152316
ctrl_name = "control_devconf";
2316-
trans = CONTROL_DEVCONF_REG;
2317+
trans = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0);
23172318
} else {
23182319
ctrl_name = "tranceiver_ctrl";
23192320
trans = omap_readw(USB_TRANSCEIVER_CTRL);

0 commit comments

Comments
 (0)