Skip to content

Commit

Permalink
USB: musb: fix Blackfin ulpi stubs
Browse files Browse the repository at this point in the history
The new ulpi code defines fallback stubs for the Blackfin arch, but does
so incorrectly leading to a build failure:
drivers/usb/musb/musb_core.c:227: error: 'musb_ulpi_read' undeclared here (not in a function)
drivers/usb/musb/musb_core.c:228: error: 'musb_ulpi_write' undeclared here (not in a function)

Tweak the fallback stubs so that they do work as intended.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mike Frysinger authored and Greg Kroah-Hartman committed Jun 30, 2010
1 parent 9297688 commit f2263db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ static int musb_ulpi_write(struct otg_transceiver *otg,
return 0;
}
#else
#define musb_ulpi_read(a, b) NULL
#define musb_ulpi_write(a, b, c) NULL
#define musb_ulpi_read NULL
#define musb_ulpi_write NULL
#endif

static struct otg_io_access_ops musb_ulpi_access = {
Expand Down

0 comments on commit f2263db

Please sign in to comment.