usb, gadget: use appropriate warning accessors
authorDavid Rientjes <rientjes@google.com>
Sun, 7 Apr 2013 21:11:47 +0000 (14:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Apr 2013 16:08:35 +0000 (09:08 -0700)
commit75bfe23a36fc47dd95c5216b48caaf1fa9c55a65
tree0c37f3c6b69609c70b9e91a1d0563b4a554810ad
parent197c58f624bfb98d3f7f381e57b5d09b2360266f
usb, gadget: use appropriate warning accessors

Use the appropriate WARN() and WARN_ON() accessors to avoid a build error
when CONFIG_BUG=n:

drivers/usb/gadget/configfs.c: In function 'config_usb_cfg_unlink':
drivers/usb/gadget/configfs.c:442:2: error: implicit declaration of function '__WARN_printf'
drivers/usb/gadget/configfs.c: In function 'configfs_do_nothing':
drivers/usb/gadget/configfs.c:733:2: error: implicit declaration of function '__WARN'

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/configfs.c