usb: gadget: f_hid: check return value of class_create
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 6 Nov 2014 10:11:56 +0000 (11:11 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 6 Nov 2014 22:18:17 +0000 (16:18 -0600)
commit06529407329841ed836b30e4a99905a522ffa323
tree4cbd13a896db04513fb85654ad0d998a2fdd8279
parent79018420441bbbc2b567d891fc3d12ad69f1cd5f
usb: gadget: f_hid: check return value of class_create

class_create() might fail, so check its return value and react
appropriately.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_hid.c