]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: am335x-control: make it compile with
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 16 Aug 2013 15:32:49 +0000 (17:32 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Aug 2013 19:07:50 +0000 (14:07 -0500)
commit6f309b65242010d74ffbddd64f44d740c74ede8a
tree877b02e6708f2b88bdedc4ec5bb6f72961aee98d
parent56da7212fbfe04aebd6ff6b4f0d9e37deb9ff655
usb: phy: am335x-control: make it compile with

Randy reported this
|drivers/usb/phy/phy-am335x-control.c:45:3: error: implicit declaration
|of function '__WARN' [-Werror=implicit-function-declaration]

and left it as an excercice to figure out that this happens only with
CONFIG_BUG=n. As a fix I replace it with WARN_ON(). And there is a space
before return so fix this, too.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-am335x-control.c