summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior2013-08-16 17:32:49 +0200
committerFelipe Balbi2013-08-27 21:07:50 +0200
commit4ff745710f830f53738324b88623a9b53f257f72 (patch)
tree877b02e6708f2b88bdedc4ec5bb6f72961aee98d /drivers/usb/phy
parentusb: musb: honour the return value of dma_map_single() (diff)
downloadkernel-qcow2-linux-4ff745710f830f53738324b88623a9b53f257f72.tar.gz
kernel-qcow2-linux-4ff745710f830f53738324b88623a9b53f257f72.tar.xz
kernel-qcow2-linux-4ff745710f830f53738324b88623a9b53f257f72.zip
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>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r--drivers/usb/phy/phy-am335x-control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-am335x-control.c b/drivers/usb/phy/phy-am335x-control.c
index 759754521426..22cf07d62e4c 100644
--- a/drivers/usb/phy/phy-am335x-control.c
+++ b/drivers/usb/phy/phy-am335x-control.c
@@ -42,8 +42,8 @@ static void am335x_phy_power(struct phy_control *phy_ctrl, u32 id, bool on)
reg = AM335X_USB1_CTRL;
break;
default:
- __WARN();
- return;
+ WARN_ON(1);
+ return;
}
val = readl(usb_ctrl->phy_reg + reg);