diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-01 14:15:34 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 13:13:29 -0500 |
commit | 6f15e2dc710cc604cc81f0ff596d83c332b5cbe8 (patch) | |
tree | d2427e17ed11e0d8d976dc89f45825b173f4ada2 | |
parent | 07673204777abe893092cc6e42ea04e5c0ac8cb7 (diff) |
usb: phy: phy-fsl-usb: Remove some unused functions
Removes some functions that are not used anywhere:
fsl_otg_tick_timer() view_ulpi()
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/phy/phy-fsl-usb.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/usb/phy/phy-fsl-usb.c b/drivers/usb/phy/phy-fsl-usb.c index ab38aa32a6c1..94eb2923afed 100644 --- a/drivers/usb/phy/phy-fsl-usb.c +++ b/drivers/usb/phy/phy-fsl-usb.c | |||
@@ -107,19 +107,6 @@ static void (*_fsl_writel)(u32 v, unsigned __iomem *p); | |||
107 | #define fsl_writel(val, addr) writel(val, addr) | 107 | #define fsl_writel(val, addr) writel(val, addr) |
108 | #endif /* CONFIG_PPC32 */ | 108 | #endif /* CONFIG_PPC32 */ |
109 | 109 | ||
110 | /* Routines to access transceiver ULPI registers */ | ||
111 | u8 view_ulpi(u8 addr) | ||
112 | { | ||
113 | u32 temp; | ||
114 | |||
115 | temp = 0x40000000 | (addr << 16); | ||
116 | fsl_writel(temp, &usb_dr_regs->ulpiview); | ||
117 | udelay(1000); | ||
118 | while (temp & 0x40) | ||
119 | temp = fsl_readl(&usb_dr_regs->ulpiview); | ||
120 | return (le32_to_cpu(temp) & 0x0000ff00) >> 8; | ||
121 | } | ||
122 | |||
123 | int write_ulpi(u8 addr, u8 data) | 110 | int write_ulpi(u8 addr, u8 data) |
124 | { | 111 | { |
125 | u32 temp; | 112 | u32 temp; |
@@ -460,28 +447,6 @@ static void fsl_otg_fsm_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) | |||
460 | fsl_otg_del_timer(fsm, timer); | 447 | fsl_otg_del_timer(fsm, timer); |
461 | } | 448 | } |
462 | 449 | ||
463 | /* | ||
464 | * Reduce timer count by 1, and find timeout conditions. | ||
465 | * Called by fsl_otg 1ms timer interrupt | ||
466 | */ | ||
467 | int fsl_otg_tick_timer(void) | ||
468 | { | ||
469 | struct fsl_otg_timer *tmp_timer, *del_tmp; | ||
470 | int expired = 0; | ||
471 | |||
472 | list_for_each_entry_safe(tmp_timer, del_tmp, &active_timers, list) { | ||
473 | tmp_timer->count--; | ||
474 | /* check if timer expires */ | ||
475 | if (!tmp_timer->count) { | ||
476 | list_del(&tmp_timer->list); | ||
477 | tmp_timer->function(tmp_timer->data); | ||
478 | expired = 1; | ||
479 | } | ||
480 | } | ||
481 | |||
482 | return expired; | ||
483 | } | ||
484 | |||
485 | /* Reset controller, not reset the bus */ | 450 | /* Reset controller, not reset the bus */ |
486 | void otg_reset_controller(void) | 451 | void otg_reset_controller(void) |
487 | { | 452 | { |