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

mfd: omap-usb-host: Mark expected switch fall-throughs

Mark switch cases where we are expecting to fall through.

This patch fixes the following warnings:

drivers/mfd/omap-usb-host.c: In function 'usbhs_runtime_resume':
drivers/mfd/omap-usb-host.c:303:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (!IS_ERR(omap->hsic480m_clk[i])) {
^
drivers/mfd/omap-usb-host.c:313:3: note: here
case OMAP_EHCI_PORT_MODE_TLL:
^~~~
drivers/mfd/omap-usb-host.c: In function 'usbhs_runtime_suspend':
drivers/mfd/omap-usb-host.c:345:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (!IS_ERR(omap->hsic480m_clk[i]))
^
drivers/mfd/omap-usb-host.c:349:3: note: here
case OMAP_EHCI_PORT_MODE_TLL:
^~~~

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Gustavo A. R. Silva and committed by
Lee Jones
ea1acf11 76380a60

+2 -2
+2 -2
drivers/mfd/omap-usb-host.c
··· 308 308 i, r); 309 309 } 310 310 } 311 - /* Fall through as HSIC mode needs utmi_clk */ 311 + /* Fall through - as HSIC mode needs utmi_clk */ 312 312 313 313 case OMAP_EHCI_PORT_MODE_TLL: 314 314 if (!IS_ERR(omap->utmi_clk[i])) { ··· 344 344 345 345 if (!IS_ERR(omap->hsic480m_clk[i])) 346 346 clk_disable_unprepare(omap->hsic480m_clk[i]); 347 - /* Fall through as utmi_clks were used in HSIC mode */ 347 + /* Fall through - as utmi_clks were used in HSIC mode */ 348 348 349 349 case OMAP_EHCI_PORT_MODE_TLL: 350 350 if (!IS_ERR(omap->utmi_clk[i]))