Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rickard Strandqvist and committed by
Felipe Balbi
6f15e2dc 07673204

-35
-35
drivers/usb/phy/phy-fsl-usb.c
··· 107 107 #define fsl_writel(val, addr) writel(val, addr) 108 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 110 int write_ulpi(u8 addr, u8 data) 124 111 { 125 112 u32 temp; ··· 445 458 return; 446 459 447 460 fsl_otg_del_timer(fsm, timer); 448 - } 449 - 450 - /* 451 - * Reduce timer count by 1, and find timeout conditions. 452 - * Called by fsl_otg 1ms timer interrupt 453 - */ 454 - int fsl_otg_tick_timer(void) 455 - { 456 - struct fsl_otg_timer *tmp_timer, *del_tmp; 457 - int expired = 0; 458 - 459 - list_for_each_entry_safe(tmp_timer, del_tmp, &active_timers, list) { 460 - tmp_timer->count--; 461 - /* check if timer expires */ 462 - if (!tmp_timer->count) { 463 - list_del(&tmp_timer->list); 464 - tmp_timer->function(tmp_timer->data); 465 - expired = 1; 466 - } 467 - } 468 - 469 - return expired; 470 461 } 471 462 472 463 /* Reset controller, not reset the bus */