usb: musb: dsps: fix error return code in dsps_create_musb_pdev()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 May 2013 11:47:44 +0000 (19:47 +0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 15 May 2013 14:24:17 +0000 (17:24 +0300)
commitb25e5f1c4416cf96fac0918a8f1b0429642570a9
treec46b9dd24ef681659da4bb56c0eab54de1572927
parent8fe61203687a67eb1db338a4b7198a8037ca96c8
usb: musb: dsps: fix error return code in dsps_create_musb_pdev()

Fix to return -ENOMEM in the devm_kzalloc() error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c