aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/core.c
diff options
context:
space:
mode:
authorNicholas Krause <xerofoify@gmail.com>2015-06-27 00:34:48 -0400
committerPeter Chen <peter.chen@freescale.com>2015-08-13 21:13:12 -0400
commit158ec071fb5243e5c49259d2dbc4c8dbaed24c47 (patch)
tree8e9e39dab0b8fab49ca66966c780e4c026d713e0 /drivers/usb/chipidea/core.c
parent1311d6e3ea3316e9d2383219a36353ad335f6932 (diff)
usb:chipidea:Make the function hw_alloc_repmap have a return type of void
This makes the function hw_alloc_repmap be declared to have a return type of void now due to this particular function never returning a error code to its caller due to this function always running successfully to completion nor it's caller putting the return value into a variable in order to check if a error code is passed from the function hw_alloc_repmap when calling this function. Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Diffstat (limited to 'drivers/usb/chipidea/core.c')
-rw-r--r--drivers/usb/chipidea/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index 845d0d7d28e6..f620e3546eaf 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -120,7 +120,7 @@ static const u8 ci_regs_lpm[] = {
120 [OP_ENDPTCTRL] = 0xECU, 120 [OP_ENDPTCTRL] = 0xECU,
121}; 121};
122 122
123static int hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) 123static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm)
124{ 124{
125 int i; 125 int i;
126 126
@@ -136,7 +136,6 @@ static int hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm)
136 ? ci_regs_lpm[OP_ENDPTCTRL] 136 ? ci_regs_lpm[OP_ENDPTCTRL]
137 : ci_regs_nolpm[OP_ENDPTCTRL]); 137 : ci_regs_nolpm[OP_ENDPTCTRL]);
138 138
139 return 0;
140} 139}
141 140
142static enum ci_revision ci_get_revision(struct ci_hdrc *ci) 141static enum ci_revision ci_get_revision(struct ci_hdrc *ci)