Patchwork [U-Boot] usb: r8a6659: Fix build by missing of parenthesis

login
register
mail settings
Submitter Nobuhiro Iwamatsu
Date Nov. 15, 2012, 5:56 a.m.
Message ID <1352958964-17357-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>
Download mbox | patch
Permalink /patch/199187/
State Accepted
Delegated to: Marek Vasut
Headers show

Comments

Nobuhiro Iwamatsu - Nov. 15, 2012, 5:56 a.m.
By commit c7e3b2b5, this was chanded to support multiple controllers.
But this has missing of parenthesis. This commit fix it.

-----
r8a66597-hcd.c: In function ‘usb_lowlevel_init’:
r8a66597-hcd.c:911:52: error: expected declaration specifiers before ‘)’
token
r8a66597-hcd.c:935:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or‘__attribute__’ before ‘{’ token
r8a66597-hcd.c:939:1: error: expected ‘{’ at end of input
-----

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
CC: Lucas Stach <dev@lynxeye.de>
---
 drivers/usb/host/r8a66597-hcd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Marek Vasut - Nov. 15, 2012, 1:43 p.m.
Dear Nobuhiro Iwamatsu,

> By commit c7e3b2b5, this was chanded to support multiple controllers.
> But this has missing of parenthesis. This commit fix it.
> 
> -----
> r8a66597-hcd.c: In function ‘usb_lowlevel_init’:
> r8a66597-hcd.c:911:52: error: expected declaration specifiers before ‘)’
> token
> r8a66597-hcd.c:935:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
> or‘__attribute__’ before ‘{’ token r8a66597-hcd.c:939:1: error: expected
> ‘{’ at end of input
> -----
> 
> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
> CC: Lucas Stach <dev@lynxeye.de>
[...]

Applied, thanks

Best regards,
Marek Vasut

Patch

diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index 2a4e7ff..aefcf66 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -908,7 +908,7 @@  int submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
 	return 0;
 }
 
-int usb_lowlevel_init(int index, void **controller))
+int usb_lowlevel_init(int index, void **controller)
 {
 	struct r8a66597 *r8a66597 = &gr8a66597;