summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorSasha Levin <levinsasha928@gmail.com>2012-05-11 06:39:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 15:17:31 -0700
commit72688dc95afcb42f4d5e8762f8790144cec9a280 (patch)
tree8125285f55f79bcbdda6e71f8dc2e37cfb7a7041 /drivers/usb/gadget
parentfdf6e6390a567963e302a62ef676dd648d11661c (diff)
downloadlinux-72688dc95afcb42f4d5e8762f8790144cec9a280.tar.bz2
usb: gadget: dummy_hcd: fix build when BUG is not set
Use WARN_ON() instead of __WARN, which also means we won't use any internal macros. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/dummy_hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
index 83bb2e3fa861..b799106027ad 100644
--- a/drivers/usb/gadget/dummy_hcd.c
+++ b/drivers/usb/gadget/dummy_hcd.c
@@ -598,7 +598,7 @@ static void dummy_free_request(struct usb_ep *_ep, struct usb_request *_req)
struct dummy_request *req;
if (!_ep || !_req) {
- __WARN();
+ WARN_ON(1);
return;
}